:root {
  --bg: #05090d;
  --surface: #0a1117;
  --surface-2: #0f1920;
  --line: #1a2731;
  --line-2: #243540;
  --text: #e6f1f2;
  --muted: #86a0a8;
  --dim: #5b7079;
  --accent: #7de3da;
  --accent-ink: #032024;
  --accent-soft: rgba(125, 227, 218, 0.12);
  --warn: #f2c46b;
  --danger: #f27b6b;
  --ok: #8ee59b;
  --c-orbit: #7de3da;
  --c-creator: #b9a7ff;
  --c-ring: #f2c46b;
  --c-platform: #4b5f69;
  --radius: 14px;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); min-height: 100vh; overflow-x: hidden; }
/* A slow aurora over the top of every page: the planet's light on the dark. */
body::before { content: ''; position: fixed; inset: -20% -10% auto; height: 80vh; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 25% 30%, rgba(125, 227, 218, 0.10), transparent 70%), radial-gradient(35% 45% at 75% 20%, rgba(150, 120, 255, 0.08), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(5, 9, 13, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.brand canvas { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--surface-2); }
.top .grow { flex: 1; }
@media (max-width: 760px) {
  /* backdrop-filter would make the header the containing block of the fixed bottom nav */
  .top { backdrop-filter: none; background: rgba(5, 9, 13, 0.97); }
  .top .wrap { gap: 12px; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; justify-content: space-around; background: rgba(5, 9, 13, 0.95); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); backdrop-filter: blur(12px); }
  body { padding-bottom: 72px; }
}

/* ---- buttons & inputs ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-weight: 500; transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--dim); }
.btn:active { transform: translateY(1px); }
.btn.primary { position: relative; overflow: hidden; background: linear-gradient(180deg, #9cf0e8, var(--accent)); color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 0 0 1px rgba(125, 227, 218, .5), 0 8px 28px -8px rgba(125, 227, 218, .55); }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s; }
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(125, 227, 218, .7), 0 10px 36px -6px rgba(125, 227, 218, .75); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.big { height: 48px; padding: 0 22px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 13px; color: var(--muted); }
.hint { font-size: 12px; color: var(--dim); }
.input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
textarea.input { height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); }
.seg button { flex: 1; height: 36px; padding: 0 12px; white-space: nowrap; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.usd { position: relative; }
.usd span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.usd .input { padding-left: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---- panels ---- */
.panel { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 120px), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel::before { content: ''; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(125, 227, 218, .35), transparent); pointer-events: none; }
.panel .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.panel .bd { padding: 18px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.tag.accent { color: var(--accent); border-color: rgba(125, 227, 218, .35); background: var(--accent-soft); }
.up { color: var(--ok); }
.down { color: var(--danger); }

/* ---- hero ---- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero canvas.sky { display: block; width: 100%; height: 440px; }
.hero .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 0 24px; pointer-events: none; }
.hero .over > * { pointer-events: auto; }
.hero .line1 { font-size: 15px; color: var(--muted); max-width: 300px; }
.hero .line1 b { color: var(--text); font-weight: 500; }
.hero .bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat .v { font-family: var(--mono); font-size: 24px; letter-spacing: -0.02em; text-shadow: 0 0 18px rgba(125, 227, 218, .35); }
.stat .k { font-size: 12px; color: var(--muted); }
.ringlegend { display: grid; grid-template-columns: repeat(2, max-content); gap: 3px 22px; margin-top: 18px; font-size: 12px; color: var(--dim); }
.ringlegend i { font-style: normal; margin-right: 4px; }
.ringlegend .on { color: var(--accent); }
@media (max-width: 760px) {
  .hero canvas.sky { height: 600px; }
  .hero .bar { flex-direction: column; align-items: stretch; }
  .hero .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .hero .bar .btn { width: 100%; }
  .ringlegend { display: none; }
  .stats { gap: 18px; }
  .stat .v { font-size: 18px; }
}

/* ---- platform strip ---- */
.strip { border-bottom: 1px solid var(--line); background: rgba(10, 17, 23, .6); }
.strip .wrap { display: grid; grid-template-columns: repeat(7, 1fr); }
.strip .wrap > div { padding: 14px 0; display: grid; gap: 2px; }
.strip .wrap > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.strip span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.strip b { font-weight: 500; font-size: 16px; }
@media (max-width: 900px) {
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap > div + div { padding-left: 0; border-left: 0; }
  .strip .wrap > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .strip .wrap > div { border-bottom: 1px solid var(--line); }
}
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); }
.mgrid > div { padding: 12px 18px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); }
.mgrid > div:nth-child(3n + 2), .mgrid > div:nth-child(3n) { border-left: 1px solid var(--line); }
.mgrid > div:nth-last-child(-n + 3) { border-bottom: 0; }
.mgrid span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.mgrid b { font-weight: 500; font-size: 15px; }
@media (max-width: 520px) { .mgrid { grid-template-columns: 1fr 1fr; } .mgrid > div:nth-child(3n + 2), .mgrid > div:nth-child(3n) { border-left: 0; } .mgrid > div:nth-child(even) { border-left: 1px solid var(--line); } }

/* ---- coin board ---- */
.section { padding: 32px 0 56px; }
.section .title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .section .title { flex-direction: column; align-items: stretch; } .section .title .seg { overflow-x: auto; } }
.section h2 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.card .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sy { font-size: 12px; color: var(--muted); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 13px; }
.card .tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .btn { margin-top: 14px; }

/* Avatar wrapped by its 13 ring segments. */
.ava { position: relative; width: 64px; height: 64px; }
.ava img, .ava .ph { position: absolute; inset: 9px; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.ava .ph { display: grid; place-items: center; font-weight: 600; color: var(--accent); }
.ava svg { position: absolute; inset: 0; width: 64px; height: 64px; transform: rotate(-90deg); }
.ava svg path { fill: none; stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; }
.ava svg path.on { stroke: var(--accent); animation: lightup .5s ease both; }
@keyframes lightup { from { stroke: var(--line-2); } }
.ava.lg { width: 96px; height: 96px; }
.ava.lg img, .ava.lg .ph { inset: 13px; width: 70px; height: 70px; font-size: 24px; }
.ava.lg svg { width: 96px; height: 96px; }

/* ---- split bar ---- */
.split { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.split i { display: block; height: 100%; transition: flex-basis .5s cubic-bezier(.2,.8,.2,1); }
.split .orbit { background: var(--c-orbit); }
.split .creator { background: var(--c-creator); }
.split .ring { background: var(--c-ring); }
.split .platform { background: var(--c-platform); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* ---- launch ---- */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding: 32px 0 64px; align-items: start; }
@media (max-width: 960px) { .launch { grid-template-columns: 1fr; } }
.steps { display: grid; gap: 16px; }
.step .num { font-family: var(--mono); color: var(--accent); margin-right: 8px; }
.step .bd { display: grid; gap: 16px; }
.drop { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .pv { width: 72px; height: 72px; border-radius: 50%; background: var(--surface-2) center/cover; display: grid; place-items: center; color: var(--dim); font-size: 12px; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .presets { grid-template-columns: 1fr; } }
.preset { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; display: grid; gap: 8px; transition: border-color .15s, background .15s; }
.preset:hover { border-color: var(--dim); }
.preset.on { border-color: var(--accent); background: var(--accent-soft); }
.preset b { font-weight: 600; }
.preset p { margin: 0; font-size: 13px; color: var(--muted); }
.side { position: sticky; top: 84px; display: grid; gap: 12px; }
@media (max-width: 960px) { .side { position: static; } }
.side canvas { width: 100%; height: 220px; display: block; }
.kv { display: grid; gap: 8px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt, .kv .k { color: var(--muted); }
.flow { display: grid; gap: 8px; }
.flow li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.flow li .dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; }
.flow li.done { color: var(--text); }
.flow li.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.flow li.now { color: var(--text); }
.flow li.now .dot { border-color: var(--accent); color: var(--accent); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }
.err { color: var(--danger); font-size: 14px; }
.ok { color: var(--ok); font-size: 14px; }

/* ---- coin page ---- */
.coinhead { --h: 180; position: relative; display: flex; align-items: center; gap: 18px; padding: 28px 0 8px; flex-wrap: wrap; }
.coinhead::before { content: ''; position: absolute; left: -60px; top: -40px; width: 420px; height: 240px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, hsl(var(--h) 85% 55% / .22), transparent); }
.coinhead .ava { filter: drop-shadow(0 8px 24px hsl(var(--h) 85% 45% / .6)); }
.coinhead .ava svg path.on { stroke: hsl(var(--h) 85% 68%); filter: drop-shadow(0 0 3px hsl(var(--h) 95% 60%)); }
.coinhead .sub .mono:first-child { color: hsl(var(--h) 60% 75%); }
.coinhead h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.coinhead .sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--muted); }
.coinhead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.copy { cursor: pointer; border-bottom: 1px dotted var(--dim); }
.coin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; padding: 16px 0 64px; }
@media (max-width: 960px) { .coin { grid-template-columns: 1fr; } }
.coin canvas.big { width: 100%; height: 380px; display: block; }
@media (max-width: 600px) { .coin canvas.big { height: 300px; } }
.ringlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .ringlist { grid-template-columns: 1fr; } }
.ringlist div { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ringlist .n { font-family: var(--mono); color: var(--dim); }
.ringlist .on .n { color: var(--accent); }
.ringlist .g { color: var(--dim); font-size: 12px; }
.ringlist .on .t { color: var(--accent); }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.big3 > div { background: var(--surface); padding: 14px; }
.big3 .v { font-family: var(--mono); font-size: 18px; }
.big3 .k { font-size: 12px; color: var(--muted); }
.mult { display: grid; grid-template-columns: repeat(25, 1fr); align-items: end; gap: 2px; height: 80px; }
.mult i { display: block; background: var(--line-2); border-radius: 2px 2px 0 0; transition: background .2s; }
.mult i.on { background: linear-gradient(180deg, hsl(var(--h, 175) 85% 75%), hsl(var(--h, 175) 60% 50%)); box-shadow: 0 0 10px hsl(var(--h, 175) 90% 60% / .45); }
.mult-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 6px; font-family: var(--mono); }
table.ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ledger td, table.ledger th { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; }
table.ledger th { color: var(--dim); font-weight: 400; font-size: 12px; }
table.ledger td:last-child, table.ledger th:last-child { text-align: right; }

/* ---- coin tabs ---- */
.tabs { display: flex; gap: 4px; margin: 18px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s, border-color .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: hsl(var(--h, 175) 75% 65%); box-shadow: 0 8px 16px -12px hsl(var(--h, 175) 90% 60%); }
#tab { padding-bottom: 64px; }
#tab .coin { padding-top: 0; }
.swapbox { max-width: 460px; }
.input.big { height: 56px; font-size: 22px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 13px; }
.chips button:hover { color: var(--text); border-color: var(--dim); }
.quote { min-height: 74px; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.sharebar { position: relative; display: flex; align-items: center; gap: 8px; min-width: 110px; }
.sharebar i { display: block; height: 6px; border-radius: 3px; background: var(--accent); opacity: .7; }

/* ---- docs ---- */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.toc { position: relative; }
.toc-in { position: sticky; top: 120px; display: grid; gap: 2px; padding-top: 36px; }
.toc-in .eyebrow { margin-bottom: 10px; }
.toc a { padding: 6px 10px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; transition: color .15s, border-color .15s, background .15s; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--accent); background: linear-gradient(90deg, rgba(125, 227, 218, .08), transparent); }
.doc section { scroll-margin-top: 120px; }
.doc ol, .doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc b { color: var(--text); font-weight: 500; }
.doc .note { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: 14px; }
.doc details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.doc summary { cursor: pointer; color: var(--text); }
.doc details p { margin: 8px 0 0; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }
.doc { max-width: 760px; padding: 32px 0 72px; }
.doc h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 18px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc td, .doc th { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.doc th { color: var(--dim); font-weight: 400; }

footer.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 12px; color: var(--dim); }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- motion ---- */
.enter > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.enter > *:nth-child(2) { animation-delay: .05s; }
.enter > *:nth-child(3) { animation-delay: .1s; }
.enter > *:nth-child(4) { animation-delay: .15s; }
.grid > .card { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; animation: rise .25s ease both; }
@media (max-width: 760px) { .toast { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- live ticker ---- */
.ticker { border-bottom: 1px solid var(--line); background: rgba(10, 17, 23, .7); overflow: hidden; height: 38px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tk-track { display: flex; gap: 28px; width: max-content; height: 100%; align-items: center; animation: tick calc(var(--n) * 4.5s) linear infinite; padding-left: 28px; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tk img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.tk b { color: var(--text); font-weight: 500; }
.tk .dim { font-size: 12px; }
.tk[data-kind="ring"] b, .tk[data-kind="launch"] b { color: var(--accent); }
.tk::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tk[data-kind="uranus_burn"]::before { background: var(--c-ring); box-shadow: 0 0 8px var(--c-ring); }
.tk[data-kind="orbit_payout"]::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---- token cards: neutral surface, dense numbers, brand cyan as the only accent ---- */
.grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tcard { position: relative; display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s, background .25s; animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.tcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 227, 218, .07), transparent 65%); opacity: 0; transition: opacity .25s; }
.tcard:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 16px 40px -24px rgba(125, 227, 218, .35); }
.tcard:hover::after { opacity: 1; }
.tc-top { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.tc-top .ava { width: 52px; height: 52px; }
.tc-top .ava img, .tc-top .ava .ph { inset: 6px; width: 40px; height: 40px; font-size: 12px; }
.tc-top .ava svg { width: 52px; height: 52px; }
.ava svg path { stroke-width: 2.5; }
.tc-id { min-width: 0; }
.tc-name { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sym { font-size: 12px; color: var(--muted); }
.dotnew { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(125, 227, 218, .18); animation: breathe-d 1.8s ease-in-out infinite; }
@keyframes breathe-d { 50% { box-shadow: 0 0 0 6px rgba(125, 227, 218, 0); } }
.chg { font: 500 12px var(--mono); padding: 3px 7px; border-radius: 6px; }
.chg.up { color: var(--ok); background: rgba(142, 229, 155, .08); }
.chg.down { color: var(--danger); background: rgba(242, 123, 107, .08); }
.tc-nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tc-nums div { padding: 10px 0; display: grid; gap: 2px; }
.tc-nums div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.tc-nums span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.tc-nums b { font-weight: 500; font-size: 15px; }
.curve { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font: 12px var(--mono); color: var(--muted); }
.curve .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.curve .bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--accent); border-radius: inherit; transform-origin: left; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
.curve.done .bar i { background: var(--c-ring); }
.curve.done span { color: var(--c-ring); }
@keyframes grow { from { transform: scaleX(0); } }
.tc-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tc-preset { margin-left: auto; }
.rdots { display: inline-flex; gap: 3px; }
.rdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.rdots i.on { background: var(--accent); }

/* ---- spotlight: ring gauge instead of a second planet ---- */
.spot { position: relative; display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: center; margin-bottom: 16px; padding: 24px 28px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(125, 227, 218, .06), transparent 45%), var(--surface); border: 1px solid var(--line-2); animation: rise .45s cubic-bezier(.2,.8,.2,1) both; transition: border-color .25s, box-shadow .25s; }
.spot:hover { border-color: rgba(125, 227, 218, .35); box-shadow: 0 24px 60px -36px rgba(125, 227, 218, .5); }
.spot-body { display: grid; gap: 18px; min-width: 0; }
.eyebrow { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.spot-id { display: flex; align-items: center; gap: 16px; }
.spot-name { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.spot-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px; }
.spot-stats b { display: block; font-size: 20px; font-weight: 500; }
.spot-stats span { font-size: 12px; color: var(--muted); }
.spark { width: 100%; height: 48px; display: block; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.6s ease forwards; }
.spark .fill { fill: rgba(125, 227, 218, .08); stroke: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spot-gauge { display: grid; place-items: center; }
.gauge { width: 260px; height: 260px; }
.gauge circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.gauge .trk { stroke: var(--line); }
.gauge .arc { stroke: var(--accent); stroke-dashoffset: var(--len); animation: sweep 1.2s cubic-bezier(.2,.8,.2,1) forwards; filter: drop-shadow(0 0 3px rgba(125, 227, 218, .35)); }
.gauge .arc:nth-child(4n) { stroke: #a9eee8; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.gauge .g-num { fill: var(--text); font: 600 38px var(--mono); text-anchor: middle; }
.gauge .g-lbl { fill: var(--muted); font: 11px var(--sans); text-anchor: middle; }
@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; padding: 20px; }
  .spot-gauge { order: -1; }
  .gauge { width: 200px; height: 200px; }
  .spot-stats { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
}

/* ---- admin ---- */
.admin { padding-bottom: 64px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.adm-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.official { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; flex: none; }

/* ---- search ---- */
.searchbtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--dim); cursor: pointer; font-size: 13px; min-width: 260px; transition: border-color .15s; }
.searchbtn:hover { border-color: var(--dim); color: var(--muted); }
.searchbtn kbd { margin-left: auto; font: 11px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
@media (max-width: 1100px) { .searchbtn { min-width: 0; padding: 0 10px; } .searchbtn span { display: none; } }
@media (max-width: 760px) { .searchbtn kbd { display: none; } }
.palette { position: fixed; inset: 0; z-index: 60; background: rgba(3, 6, 9, .72); backdrop-filter: blur(4px); display: grid; justify-items: center; align-items: start; padding: 12vh 16px 0; }
.palette[hidden] { display: none; }
.pal-box { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(125, 227, 218, .08); overflow: hidden; animation: rise .2s ease both; }
.pal-box .input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 54px; font-size: 16px; background: transparent; box-shadow: none; }
#palRes { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-item { display: grid; grid-template-columns: 26px auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; font-size: 14px; }
.pal-item img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.pal-item.on, .pal-item:hover { background: var(--surface-2); }
.pal-empty { padding: 16px 10px; font-size: 14px; }
.pal-foot { border-top: 1px solid var(--line); padding: 8px 14px; font-size: 12px; }

/* ---- watchlist star ---- */
.star { width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--dim); cursor: pointer; font-size: 15px; line-height: 1; transition: color .15s, transform .15s, background .15s; }
.star:hover { color: var(--text); background: var(--surface-2); }
.star.on { color: var(--c-ring); text-shadow: 0 0 10px rgba(242, 196, 107, .6); }
.star:active { transform: scale(.85); }
.coinhead .actions .star { width: 40px; height: 40px; border: 1px solid var(--line-2); }
.tc-right { display: flex; align-items: center; gap: 4px; }

/* ---- chart ---- */
.chartp .hd { padding: 10px 14px 10px 18px; }
.seg.tf button { height: 28px; padding: 0 9px; font: 12px var(--mono); }
.chart { position: relative; height: 340px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; }
@media (max-width: 600px) { .chart { height: 260px; } }

/* ---- safety ---- */
.safety { display: grid; grid-template-columns: 1fr 1fr; }
.safety > div { padding: 11px 18px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); }
.safety > div:nth-child(even) { border-left: 1px solid var(--line); }
.safety > div:nth-last-child(-n + 2) { border-bottom: 0; }
.safety span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.safety b { font-weight: 500; font-size: 14px; }
.ok-t { color: var(--ok); }
.bad-t { color: var(--danger); }
.warn-t { color: var(--warn); }
@media (max-width: 520px) { .safety { grid-template-columns: 1fr; } .safety > div:nth-child(even) { border-left: 0; } .safety > div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* ---- live tape ---- */
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(142, 229, 155, .6); animation: livepulse 1.6s ease-out infinite; }
.live-dot.off::before { background: var(--dim); animation: none; }
@keyframes livepulse { to { box-shadow: 0 0 0 8px rgba(142, 229, 155, 0); } }
tr.flash td { animation: flashrow 1.6s ease both; }
tr.flash.buy td { --fc: rgba(142, 229, 155, .16); }
tr.flash.sell td { --fc: rgba(242, 123, 107, .16); }
@keyframes flashrow { from { background: var(--fc); } }

/* ---- pages ---- */
.page { padding: 28px 0 64px; display: grid; gap: 16px; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.page .tabs { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kpis > div { background: var(--surface); padding: 14px 18px; display: grid; gap: 4px; }
.kpis span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.kpis b { font-weight: 500; font-size: 20px; }
.cell-coin { display: inline-flex; align-items: center; gap: 8px; }
.cell-coin img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
td.rank { width: 36px; color: var(--dim); }
td.rank.top { color: var(--c-ring); }
table.lb td { padding: 11px 0; }
@media (max-width: 760px) {
  .nav { overflow-x: auto; justify-content: flex-start; gap: 2px; scrollbar-width: none; }
  .nav a { flex: none; padding: 8px 10px; font-size: 14px; }
}

/* ---- launch gate ---- */
.lock { flex: none; vertical-align: -2px; }
.navlocked { display: inline-flex; align-items: center; gap: 5px; }
.locked-btn { color: var(--muted); border-color: var(--line-2); gap: 8px; }
.locked-btn:hover { color: var(--text); }
.official-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.official-link b { color: var(--accent); font-weight: 500; }
.gate { max-width: 520px; margin: 72px auto 96px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.gate h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.gate p { margin: 0; color: var(--muted); }
.gate-ring { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 10px rgba(125, 227, 218, .04), 0 0 40px -10px rgba(125, 227, 218, .5); margin-bottom: 6px; }
.gate-ring::after { content: ''; position: absolute; inset: -11px; border-radius: 50%; border: 1px dashed rgba(125, 227, 218, .35); animation: orbit 18s linear infinite; }
.gate-ring .lock { width: 30px; height: 30px; }
.gate-check { display: inline-flex; align-items: center; gap: 10px; font: 12px var(--mono); color: var(--dim); }
.gate-check .spin { width: 12px; height: 12px; border-width: 1.5px; color: var(--accent); }
.gatebar { display: block; margin-bottom: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(242, 196, 107, .35); background: rgba(242, 196, 107, .06); font-size: 14px; color: var(--muted); }
.gatebar b { color: var(--warn); font-weight: 500; }
.gatebar .lock { margin-right: 6px; color: var(--warn); }
.gatebar a { color: var(--accent); }
.gatebar.open { border-color: rgba(142, 229, 155, .3); background: rgba(142, 229, 155, .05); }
.gatebar.open b { color: var(--ok); }

/* ---- self launch ---- */
.own { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.own li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14px; }
.own li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
.own b { color: var(--text); font-weight: 500; }
.resume { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid rgba(242, 196, 107, .35); border-radius: 10px; background: rgba(242, 196, 107, .06); font-size: 13px; color: var(--muted); }

/* ---- X link ---- */
.xbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); transition: color .15s, border-color .15s; }
.xbtn:hover { color: var(--text); border-color: var(--dim); }
.foot-links { display: inline-flex; align-items: center; gap: 16px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
@media (max-width: 420px) { .xbtn { display: none; } }
