/* AGENTPAD. Dark shell after usepaid, token cards after pons. Geist throughout. */
:root {
  --bg: oklch(0.145 0 0);
  --rail: oklch(0.155 0 0);
  --surface: oklch(0.185 0.002 270);
  --surface-2: oklch(0.225 0.003 270);
  --surface-3: oklch(0.27 0.004 270);
  --line: oklch(1 0 0 / 0.08);
  --line-2: oklch(1 0 0 / 0.14);
  --ink: oklch(0.985 0 0);
  --ink-2: oklch(0.82 0 0);
  --ink-3: oklch(0.67 0 0);
  --cta: oklch(0.985 0 0);
  --cta-ink: oklch(0.145 0 0);
  --alive: oklch(0.80 0.17 152);
  --low: oklch(0.83 0.14 78);
  --asleep: oklch(0.62 0 0);
  --up: oklch(0.78 0.17 152);
  --down: oklch(0.70 0.19 25);
  --openai: #10a37f;
  --grok: oklch(0.93 0 0);
  --claude: #d97757;
  --section: oklch(0.165 0.002 270);
  --shade: oklch(0 0 0 / 0.55);
  --r-card: 16px;
  --r-sec: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --z-sticky: 20; --z-rail: 30; --z-menu: 40; --z-modal: 50; --z-toast: 60;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: oklch(0.972 0 0);
  --rail: oklch(0.985 0 0);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.955 0 0);
  --surface-3: oklch(0.92 0 0);
  --line: oklch(0 0 0 / 0.08);
  --line-2: oklch(0 0 0 / 0.14);
  --ink: oklch(0.17 0 0);
  --ink-2: oklch(0.36 0 0);
  --ink-3: oklch(0.47 0 0);
  --cta: oklch(0.17 0 0);
  --cta-ink: oklch(0.985 0 0);
  --alive: oklch(0.60 0.16 152);
  --low: oklch(0.62 0.14 70);
  --asleep: oklch(0.55 0 0);
  --up: oklch(0.55 0.16 152);
  --down: oklch(0.56 0.2 25);
  --grok: oklch(0.2 0 0);
  --section: oklch(0.945 0 0);
  --shade: oklch(0 0 0 / 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--bg); }

/* scrollbars, themed */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ------------------------------------------------------------ shell */
.rail { position: fixed; inset: 0 auto 0 0; width: 64px; background: var(--rail); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; z-index: var(--z-rail); }
/* the logo is the supplied artwork on its own near-black ground, so it stays a dark tile in both themes */
.rail .logo { width: 40px; height: 40px; border-radius: 11px; background: #03080c; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 0 0 1px var(--line-2); transition: transform .2s var(--ease); }
.rail .logo:hover { transform: scale(1.05); }
.rail .logo { display: grid; place-items: center; }
.rail .logo img { width: 72%; height: 72%; }                 /* air around the robot inside its tile */
.rail a.ri { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); position: relative;
  transition: background .18s var(--ease), color .18s var(--ease); }
.rail a.ri:hover { background: var(--surface-2); color: var(--ink); }
.rail a.ri.on { color: var(--ink); background: var(--surface-2); }
.rail a.ri svg { width: 20px; height: 20px; }
.rail a.ri .tip { position: absolute; left: 52px; background: var(--surface-3); color: var(--ink); font-size: 12.5px; font-weight: 500;
  padding: 5px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translateX(-4px); pointer-events: none;
  transition: opacity .15s, transform .15s var(--ease); }
.rail a.ri:hover .tip { opacity: 1; transform: none; }
.rail .grow { flex: 1; }
.rail .themebtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); }
.rail .themebtn:hover { color: var(--ink); background: var(--surface-2); }
.rail .themebtn svg { width: 17px; height: 17px; }

.main { margin-left: 64px; min-height: 100vh; }
.top { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 10px 24px; height: 60px; }
.top .word { font-weight: 650; letter-spacing: -0.01em; font-size: 16px; display: none; align-items: center; gap: 8px; }
.top .word img { width: 30px; height: 30px; padding: 4px; border-radius: 8px; background: #03080c; box-shadow: 0 0 0 1px var(--line-2); }
.search { flex: 1; max-width: 520px; margin-left: 40px; position: relative; }
.search input { width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  padding: 0 64px 0 38px; font-size: 14px; outline: none; transition: border-color .15s, background .15s; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--ink-3); }
.search > svg { position: absolute; left: 13px; top: 11px; width: 16px; height: 16px; color: var(--ink-3); }
.search kbd { position: absolute; right: 10px; top: 8px; font: 500 11.5px var(--font); color: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 2px 6px; background: var(--surface-2); }
.search .res { position: absolute; top: 44px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 6px; z-index: var(--z-menu); max-height: 380px; overflow: auto; box-shadow: 0 8px 8px -4px var(--shade); }
.search .res a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.search .res a:hover, .search .res a.on { background: var(--surface-2); }
.search .res img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.search .res .e { padding: 12px; color: var(--ink-3); font-size: 13.5px; }
.top .sp { flex: 1; }
.ca-pill { display: inline-flex; gap: 8px; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-2); }
.ca-pill:hover { color: var(--ink); background: var(--surface); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px;
  font-weight: 550; font-size: 14px; border: 1px solid var(--line-2); color: var(--ink); background: transparent; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s, transform .12s var(--ease), opacity .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.ink { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.btn.ink:hover { background: color-mix(in oklch, var(--cta) 88%, var(--bg)); }
.btn.big { height: 46px; padding: 0 24px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--alive); }
.walwrap { position: relative; }
.walmenu { position: absolute; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px;
  min-width: 220px; display: none; z-index: var(--z-menu); box-shadow: 0 8px 8px -4px var(--shade); }
.walmenu.open { display: block; }
.walmenu .addr { padding: 8px 10px 10px; font-size: 12px; color: var(--ink-3); word-break: break-all; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.walmenu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; font-size: 14px; }
.walmenu button:hover { background: var(--surface-2); }

.page { padding: 0 32px 80px; max-width: 1320px; margin: 0 auto; }
.page[hidden] { display: none; }

/* ------------------------------------------------------------ hero */
.hero { text-align: center; padding: 72px 0 44px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 560; max-width: 15ch; margin: 0 auto; }
.hero p.sub { color: var(--ink-3); font-size: 17px; line-height: 1.6; max-width: 58ch; margin: 22px auto 0; }
.hero .cta { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 7px; border-radius: 999px; background: var(--surface-2);
  color: var(--ink); font-size: 14px; font-weight: 500; vertical-align: 1px; border: 1px solid var(--line); }
.chip .lg { width: 15px; height: 15px; display: inline-grid; }
.lg { display: inline-grid; width: 1em; height: 1em; flex: none; }
.lg svg { width: 100%; height: 100%; display: block; }
.lg.openai { color: var(--ink); } .lg.grok { color: var(--ink); } .lg.claude { color: var(--claude); }

/* ------------------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sec); overflow: hidden; position: relative; height: 420px;
  display: flex; flex-direction: column; }
.tile .tfoot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 14px; font-weight: 550;
  border-top: 1px solid var(--line); background: var(--surface); position: relative; z-index: 2; }
.tile .tfoot a { color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.tile .tfoot a:hover { color: var(--ink); }
.tile .body { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.tile .fade::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }

/* agents tile: one slanted slice per model, the seams glide toward the slice under the pointer */
@property --x1 { syntax: "<percentage>"; inherits: true; initial-value: 33.333%; }
@property --x2 { syntax: "<percentage>"; inherits: true; initial-value: 66.667%; }
/* --x1 and --x2 are the midpoints of the two seams, so equal thirds are 33.333% and 66.667% */
.trio { --x1: 33.333%; --x2: 66.667%; --sl: 9%; --gap: 1px; position: absolute; inset: 0; background: color-mix(in oklch, var(--ink) 22%, var(--surface));
  transition: --x1 .7s var(--ease), --x2 .7s var(--ease); }
.trio:has(.s-openai:hover) { --x1: 45%; --x2: 72.5%; }
.trio:has(.s-grok:hover) { --x1: 27.5%; --x2: 72.5%; }
.trio:has(.s-claude:hover) { --x1: 27.5%; --x2: 55%; }
.slice { position: absolute; inset: 0; overflow: hidden; display: block; color: var(--ink); --m: var(--ink-3); }
.s-openai { --m: #10a37f; clip-path: polygon(0 0, calc(var(--x1) + var(--sl) / 2 - var(--gap)) 0, calc(var(--x1) - var(--sl) / 2 - var(--gap)) 100%, 0 100%); }
.s-grok { --m: oklch(0.86 0 0); clip-path: polygon(calc(var(--x1) + var(--sl) / 2 + var(--gap)) 0, calc(var(--x2) + var(--sl) / 2 - var(--gap)) 0, calc(var(--x2) - var(--sl) / 2 - var(--gap)) 100%, calc(var(--x1) - var(--sl) / 2 + var(--gap)) 100%); }
.s-claude { --m: #d97757; clip-path: polygon(calc(var(--x2) + var(--sl) / 2 + var(--gap)) 0, 100% 0, 100% 100%, calc(var(--x2) - var(--sl) / 2 + var(--gap)) 100%); }
:root[data-theme="light"] .s-grok { --m: oklch(0.35 0 0); }
.slice .sbg { position: absolute; inset: 0; background: var(--surface); }
.slice .drift { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; align-content: start;
  opacity: .3; filter: saturate(.7); animation: drift 60s linear infinite; transition: opacity .6s var(--ease), filter .6s var(--ease); }
.slice .drift img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.s-grok .drift { animation-duration: 70s; animation-direction: reverse; }
.s-claude .drift { animation-duration: 64s; }
@keyframes drift { to { transform: translateY(-50%); } }
.slice .tint { position: absolute; inset: 0;
  background: radial-gradient(90% 55% at 35% 105%, color-mix(in oklch, var(--m) 55%, transparent), transparent 75%),
              linear-gradient(180deg, color-mix(in oklch, var(--surface) 45%, transparent) 0%, color-mix(in oklch, var(--surface) 80%, transparent) 45%,
                                      color-mix(in oklch, var(--surface) 62%, transparent) 100%); }
.slice .glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; left: 20%; top: 30%; filter: blur(40px);
  background: color-mix(in oklch, var(--m) 30%, transparent); animation: float 9s ease-in-out infinite alternate; }
.s-grok .glow { animation-delay: -3s; } .s-claude .glow { animation-delay: -6s; }
@keyframes float { to { transform: translate(18%, -22%) scale(1.15); } }
.slice .wm { position: absolute; width: 230px; height: 230px; right: -50px; bottom: -60px; opacity: .1; color: var(--m); transition: opacity .6s, transform .9s var(--ease); }
.slice .wm svg { width: 100%; height: 100%; }
.s-openai .wm { left: calc(var(--x1) - var(--sl) / 2 - 190px); right: auto; }
.s-grok .wm { left: calc(var(--x2) - var(--sl) / 2 - 200px); right: auto; }
.slice:hover .drift { opacity: .5; filter: saturate(1); }
.slice:hover .wm { opacity: .2; transform: rotate(-12deg) scale(1.06); }
.slice .sc { position: absolute; top: 0; bottom: 0; padding: 22px 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.s-openai .sc { left: 0; width: calc(var(--x1) - var(--sl) / 2); }
.s-grok .sc { left: calc(var(--x1) + var(--sl) / 2); width: calc(var(--x2) - var(--x1) - var(--sl)); }
.s-claude .sc { left: calc(var(--x2) + var(--sl) / 2); width: calc(100% - var(--x2) - var(--sl) / 2); }
.sc .slogo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklch, var(--surface) 70%, transparent);
  border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sc .slogo .lg { width: 24px; height: 24px; }
.sc .sname { margin-top: 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.sc .smodel { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc .sgrow { flex: 1; }
.sc .snum { white-space: nowrap; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc .snum small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.sc .smeta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.sc .smeta i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--alive); margin-right: 5px; vertical-align: 1px; }
.sc .smeta i.off { background: var(--asleep); }
.sc .smeta i.on { animation: beat 1.6s var(--ease) infinite; }
.sc .slast { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); min-height: 3.4em; }
.sc .slast b { display: block; color: var(--ink); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .35s, transform .35s var(--ease); }
.sc .slast span { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; transition: opacity .35s; }
.sc .slast.swap b, .sc .slast.swap span { opacity: 0; transform: translateY(4px); }
.feedlist { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fi { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.fi .av { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: var(--surface-3); flex: none; }
.fi .tx { flex: 1; min-width: 0; overflow: hidden; }
.fi .l1 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.fi .l1 .lg { width: 14px; height: 14px; }
.dec .l1 .lg, .chead .meta .lg { width: 15px; height: 15px; }
.fi .l1 b { color: var(--ink); font-weight: 600; }
.fi .l2 { font-weight: 600; font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi .amt { font-family: var(--mono); font-size: 13px; text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fi .amt small { display: block; color: var(--ink-3); font-family: var(--font); font-size: 12px; }
.fi .l1 span { white-space: nowrap; }
.act { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-3); color: var(--ink-2); }
.act.buyback { background: color-mix(in oklch, var(--up) 18%, transparent); color: var(--up); }
.act.burn { background: color-mix(in oklch, var(--down) 18%, transparent); color: var(--down); }
.act.airdrop, .act.lottery { background: color-mix(in oklch, var(--low) 20%, transparent); color: var(--low); }
.act.error { background: color-mix(in oklch, var(--down) 14%, transparent); color: var(--down); }
.tile-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--ink-3); font-size: 14.5px; }
.tile-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; font-weight: 600; }

/* ------------------------------------------------------------ model strip */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.mt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sec); padding: 20px; display: flex; flex-direction: column; gap: 18px;
  transition: border-color .2s; }
.mt:hover { border-color: var(--line-2); }
.mt .h { display: flex; align-items: center; gap: 12px; }
.mt .h .lgb { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.mt .h .lgb .lg { width: 22px; height: 22px; }
.mt .h b { font-size: 17px; font-weight: 600; display: block; }
.mt .h small { color: var(--ink-3); font-size: 13px; }
.mt .h .go { margin-left: auto; color: var(--ink-3); }
.mt dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; gap: 8px; }
.mt dt { font-size: 12px; color: var(--ink-3); }
.mt dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt dd small { font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* ------------------------------------------------------------ board (pons) */
.sec { background: var(--section); border: 1px solid var(--line); border-radius: var(--r-sec); padding: 22px; margin-top: 40px; }
.sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-h h2 { font-size: 22px; letter-spacing: -0.015em; }
.count { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; font-weight: 600; }
.sec-p { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 18px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center;
  transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface-3); color: var(--ink); }
.seg .lg { width: 14px; height: 14px; }
.filters .sp { flex: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: var(--r-card); padding: 8px 8px 12px; display: block; position: relative;
  transition: transform .2s var(--ease), background .2s; border: 1px solid var(--line); }
.card:hover { transform: translateY(-2px); background: var(--surface-2); }
.card .im { aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--surface-3); position: relative; }
.card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .im img { transform: scale(1.03); }
.badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: oklch(0.16 0 0 / 0.78); color: oklch(0.98 0 0); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.badge .lg { width: 12px; height: 12px; color: oklch(0.98 0 0); }
.badge .lg.claude { color: var(--claude); }
.badge.st i { width: 6px; height: 6px; border-radius: 50%; background: var(--alive); }
.badge.st.low i { background: var(--low); }
.badge.st.asleep i { background: var(--asleep); }
.badge.st.alive i { animation: beat 1.6s var(--ease) infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--alive) 60%, transparent); } 50% { box-shadow: 0 0 0 4px transparent; } }
.card .life { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px; background: oklch(0 0 0 / 0.45); overflow: hidden; }
.card .life i, .lifebar i { display: block; height: 100%; background: var(--alive); border-radius: inherit; transition: width .6s var(--ease); }
.card .life.low i, .lifebar.low i { background: var(--low); }
.card .life.asleep i, .lifebar.asleep i { background: var(--asleep); }
.card .nm { margin: 10px 4px 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tk { margin: 0 4px; color: var(--ink-3); font-size: 13px; }
.card .mc { margin: 8px 4px 0; display: flex; align-items: baseline; gap: 6px; }
.card .mc .v { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card .mc small { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.card .row { margin: 8px 4px 0; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); gap: 6px; }
.card .row .fees { color: var(--ink-2); }
.card .last { margin: 8px 4px 0; font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.skel { background: var(--surface); border-radius: var(--r-card); height: 330px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, oklch(1 0 0 / 0.04) 50%, transparent 80%);
  animation: sh 1.4s linear infinite; }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.empty { text-align: center; padding: 56px 20px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--ink-3); max-width: 46ch; margin: 8px auto 20px; }

/* odometer */
.odo { display: inline-flex; overflow: hidden; line-height: 1.15; height: 1.15em; vertical-align: bottom; }
.odo .d { display: inline-block; height: 1.15em; overflow: hidden; }
.odo .d > span { display: flex; flex-direction: column; transition: transform .9s var(--ease); }
.odo .d > span > span { height: 1.15em; }

/* ------------------------------------------------------------ launch */
.lhead { padding: 44px 0 26px; }
.lhead h1 { font-size: 34px; letter-spacing: -0.02em; }
.lhead p { color: var(--ink-3); margin-top: 8px; max-width: 62ch; }
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sec); padding: 22px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.panel h3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }
.panel .ph { color: var(--ink-3); font-size: 13.5px; margin: 6px 0 16px 34px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; }
.field label small { color: var(--ink-3); font-weight: 400; }
.inp { height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 13px; font-size: 14.5px; outline: none;
  transition: border-color .15s; width: 100%; }
textarea.inp { height: auto; min-height: 84px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: var(--ink-3); }
.inp::placeholder { color: var(--ink-3); }
.inp.pre { padding-left: 30px; }
.pwrap { position: relative; }
.pwrap > span { position: absolute; left: 13px; top: 11px; color: var(--ink-3); font-size: 14.5px; }
.pwrap > em { position: absolute; right: 13px; top: 11px; color: var(--ink-3); font-size: 13.5px; font-style: normal; }
.drop { display: flex; gap: 14px; align-items: center; border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px; cursor: pointer; margin-bottom: 14px;
  transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ink-3); background: var(--surface-2); }
.drop .pv { width: 72px; height: 72px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--ink-3); }
.drop .pv img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font-weight: 600; font-size: 14.5px; }
.drop span { color: var(--ink-3); font-size: 13px; }
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pick { text-align: left; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; background: var(--bg); position: relative;
  transition: border-color .15s, background .15s; }
.pick:hover { background: var(--surface-2); }
.pick.on { border-color: var(--ink); background: var(--surface-2); }
.pick .lg { width: 26px; height: 26px; }
.pick b { display: block; margin-top: 14px; font-size: 15.5px; font-weight: 600; }
.pick small { color: var(--ink-3); font-size: 12.5px; }
.pick .ck { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.pick.on .ck { background: var(--ink); border-color: var(--ink); }
.pick.on .ck::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ideas button { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.ideas button:hover { color: var(--ink); background: var(--surface-2); }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.quick button:hover { background: var(--surface-2); color: var(--ink); }
.side { position: sticky; top: 80px; }
.pairbtn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); text-align: left; transition: border-color .15s, background .15s; }
.pairbtn:hover { background: var(--surface-2); }
.pairbtn[aria-expanded="true"] { border-color: var(--ink-3); }
.pairbtn img, .pairrow img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.pairbtn b, .pairrow b { display: block; font-weight: 600; font-size: 14.5px; }
.pairbtn small, .pairrow small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pairbtn .tx, .pairrow .tx { flex: 1; min-width: 0; }
.pairbtn .chev { color: var(--ink-3); transition: transform .2s var(--ease); }
.pairbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pairpanel { margin-top: 10px; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; background: var(--bg); }
.pairtabs { margin: 10px 0 8px; }
.pairlist { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.pairrow { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-align: left; width: 100%; }
.pairrow:hover { background: var(--surface-2); }
.pairrow.on { background: var(--surface-3); }
.pairrow .grp { font-size: 11.5px; color: var(--ink-3); flex: none; }
.pairlist .e { padding: 14px; color: var(--ink-3); font-size: 13.5px; }
.pairtag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--surface-3); color: var(--ink-2);
  font-size: 11px; font-weight: 600; margin-left: 6px; vertical-align: 1px; }
.pcard { pointer-events: none; }
.rules { margin-top: 14px; }
.rules .rr { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rules .rr:last-child { border-bottom: 0; }
.rules .rr span { color: var(--ink-3); }
.rules .rr b { font-weight: 550; text-align: right; }
.msg { color: var(--down); font-size: 13.5px; margin-top: 10px; min-height: 1em; }
.msg.ok { color: var(--up); }
.steps { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.steps div { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.steps div i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.steps div.on { color: var(--ink); } .steps div.on i { border-color: var(--ink); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps div.ok { color: var(--ink-2); } .steps div.ok i { background: var(--up); border-color: var(--up); }
.steps div.bad { color: var(--down); } .steps div.bad i { background: var(--down); border-color: var(--down); }
@keyframes spin { to { transform: rotate(360deg); } }
.done { margin-top: 14px; background: var(--surface-2); border-radius: 14px; padding: 16px; }
.done b { display: block; font-size: 15.5px; }
.done span { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.done .links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------ coin page */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); font-size: 13.5px; margin: 22px 0 16px; }
.back:hover { color: var(--ink); }
.chead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.chead .av { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--surface-2); }
.chead h1 { font-size: 26px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chead h1 small { color: var(--ink-3); font-size: 17px; font-weight: 500; }
.chead .meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.chead .meta a:hover { color: var(--ink); }
.chead .links { margin-left: auto; display: flex; gap: 8px; }
.stpill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: color-mix(in oklch, var(--alive) 16%, transparent); color: var(--alive); }
.stpill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stpill.low { background: color-mix(in oklch, var(--low) 18%, transparent); color: var(--low); }
.stpill.asleep { background: var(--surface-3); color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.stat span { font-size: 12.5px; color: var(--ink-3); }
.stat b { display: block; font-size: 20px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.lifebar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.chart { height: 380px; position: relative; }
.chart .ivs { position: absolute; top: 12px; left: 12px; z-index: 3; }
.chart .ce { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; text-align: center; padding: 20px; }
.chart-host { position: absolute; inset: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tabs button { height: 44px; padding: 0 14px; font-size: 14px; font-weight: 550; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button .c { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.dec { padding: 16px 2px; border-bottom: 1px solid var(--line); }
.dec:last-child { border-bottom: 0; }
.dec .l1 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.dec .l1 .mood { color: var(--ink-2); font-weight: 600; }
.dec h4 { font-size: 16px; margin: 8px 0 6px; font-weight: 600; }
.dec p { color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 72ch; }
.dec .l3 { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.dec .l3 a { text-decoration: underline; text-underline-offset: 2px; }
.tag { display: inline-flex; height: 20px; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12.5px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
.up { color: var(--up); } .down { color: var(--down); }
.trade .seg2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.trade .seg2 button { height: 36px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.trade .seg2 button.on.buy { background: color-mix(in oklch, var(--up) 20%, transparent); color: var(--up); }
.trade .seg2 button.on.sell { background: color-mix(in oklch, var(--down) 18%, transparent); color: var(--down); }
.trade .est { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 14px; min-height: 1.2em; }
.agentcard .ah { display: flex; align-items: center; gap: 12px; }
.agentcard .ah .lgb { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.agentcard .ah .lgb .lg { width: 22px; height: 22px; }
.agentcard .ah b { display: block; font-size: 16px; }
.agentcard .ah small { color: var(--ink-3); font-size: 12.5px; }
.agentcard .mand { margin-top: 14px; background: var(--surface-2); border-radius: 12px; padding: 12px; font-size: 13.5px; color: var(--ink-2); }
.agentcard .mand span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }

/* ------------------------------------------------------------ how */
.how { max-width: 860px; margin: 0 auto; }
.how .hero { padding-bottom: 36px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.flow .f { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.flow .f .n { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.flow .f b { display: block; margin: 10px 0 6px; font-size: 16px; }
.flow .f p { color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.acts .a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.acts .a p { color: var(--ink-3); font-size: 13px; margin-top: 8px; line-height: 1.5; }
.h2 { font-size: 22px; letter-spacing: -0.015em; margin: 48px 0 6px; }
.h2p { color: var(--ink-3); margin-bottom: 16px; max-width: 66ch; }
.lifedemo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sec); padding: 22px; }
.lifedemo svg { width: 100%; height: auto; display: block; }
.lifedemo .legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.lifedemo .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.note { background: var(--surface-2); border-radius: var(--r-card); padding: 18px; margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.note b { color: var(--ink); }

/* ------------------------------------------------------------ footer, wallet picker, toast */
.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 32px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot a:hover { color: var(--ink); }
.foot .sp { flex: 1; }
.wpick { position: fixed; inset: 0; background: oklch(0 0 0 / 0.6); display: grid; place-items: center; z-index: var(--z-modal); animation: fi .18s var(--ease); }
.wpick-in { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sec); padding: 22px; width: min(380px, calc(100vw - 32px)); animation: pop .22s var(--ease); }
.wpick h3 { font-size: 18px; }
.wpick p { color: var(--ink-3); font-size: 13.5px; margin: 4px 0 16px; }
.wpick .list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; font-weight: 550; }
.wpick .list button:hover { background: var(--surface-2); }
.wpick .list img { width: 30px; height: 30px; border-radius: 8px; }
.wpick .nw { color: var(--ink-3); font-size: 14px; }
.wpick .nw a { color: var(--ink); text-decoration: underline; }
@keyframes fi { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--cta); color: var(--cta-ink); padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 550; z-index: var(--z-toast); animation: pop .2s var(--ease); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .lgrid, .cgrid { grid-template-columns: 1fr; }
  .side { position: static; }
  .acts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .bento, .models, .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .picks { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rail { inset: auto 0 0 0; width: auto; height: 62px; flex-direction: row; justify-content: space-around; padding: 0 8px;
    border-right: 0; border-top: 1px solid var(--line); gap: 0; padding-bottom: env(safe-area-inset-bottom); }
  .rail .logo, .rail .grow, .rail .themebtn, .rail a.ri .tip { display: none; }
  .main { margin-left: 0; padding-bottom: 70px; }
  .top { padding: 10px 16px; gap: 8px; }
  .top .word { display: inline-flex; }
  .top .word span { display: none; }
  .search { display: none; }
  .ca-pill { display: none; }
  .page { padding: 0 16px 40px; }
  .hero { padding: 44px 0 30px; }
  .hero p.sub { font-size: 15.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card .last { display: none; }
  .card .row span:last-child { display: none; }
  .trio { --sl: 7%; }
  .slice .sc { padding: 16px 10px 16px 14px; }
  .sc .slast, .sc .smodel, .sc [data-sfees] { display: none; }
  .sc .sname { font-size: 16px; }
  .sc .snum { font-size: 26px; }
  .sc .slogo { width: 36px; height: 36px; }
  .slice .drift { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 14px; margin-top: 28px; }
  .frow { grid-template-columns: 1fr; }
  .chead .links { margin-left: 0; }
  .foot { padding: 20px 16px 90px; }
  .tile { height: 360px; }
  .acts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
