:root {
  --bg: #0b0e13;
  --bg-2: #10141b;
  --bg-3: #161b24;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eef1f6;
  --muted: rgba(238, 241, 246, 0.62);
  --faint: rgba(238, 241, 246, 0.38);
  --up: #3ddc97;
  --down: #ff6b72;
  --accent: #9fd3ff;
  --badge-bg: #cdeefc;
  --badge-fg: #0d3a5c;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 28px;
  background: linear-gradient(to bottom, rgba(14, 26, 46, 0.32), rgba(14, 26, 46, 0.12));
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}
.nav.solid { background: rgba(11, 14, 19, 0.82); }
.nav .brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.nav .brand .mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.nav .brand .mark img { width: 20px; height: 20px; filter: invert(1); }
.nav .brand span { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.nav .brand .mark-coin { width: 32px; height: 32px; border-radius: 50%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.nav .brand em { font: italic 400 16px var(--serif); color: rgba(255, 255, 255, 0.72); margin-left: 1px; }
.nav .links { display: flex; gap: 6px; }
.nav .links a, .nav .right .link {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86);
  padding: 7px 12px; border-radius: 7px; transition: background 0.15s ease, color 0.15s ease;
}
.nav .links a:hover, .nav .right .link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav .links a.on { background: rgba(255, 255, 255, 0.12); }
.nav .right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #0b0e13; border: 0; border-radius: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 16px; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25); }
.btn-white .arr { font-size: 13px; line-height: 1; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px 16px 90px; overflow: hidden; isolation: isolate; }
.hero .sky { position: absolute; inset: 0; z-index: -2; background: #4a78ab url("/assets/sky.jpg") center 30% / cover no-repeat; transform: scale(1.04); animation: drift 60s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(8, 20, 40, 0.18) 0%, rgba(8, 20, 40, 0.06) 35%, rgba(11, 14, 19, 0.35) 72%, var(--bg) 100%); }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero .sky { animation: none; } }
.badge {
  display: inline-flex; align-items: center; gap: 7px; background: var(--badge-bg); color: var(--badge-fg);
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } }
.hero h1 { font: 400 clamp(54px, 8.4vw, 108px)/0.98 var(--serif); letter-spacing: -0.02em; margin: 22px 0 18px; color: #fff; text-shadow: 0 2px 30px rgba(10, 30, 60, 0.18); }
.hero h1 em { font-style: italic; }
.hero .sub { max-width: 440px; margin: 0 auto; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.hero .sub b { display: block; color: #fff; font-weight: 600; }
.hero .cta { margin-top: 24px; }
.ask { position: relative; width: min(570px, 100%); margin: 46px auto 0; }
.ask form {
  display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 12px 0 22px; border-radius: 22px;
  background: rgba(58, 68, 84, 0.52); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 50px rgba(8, 18, 36, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ask input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 15px var(--sans); }
.ask input::placeholder { color: rgba(255, 255, 255, 0.75); }
.ask .go { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.28); color: #fff; display: grid; place-items: center; transition: background 0.15s ease; }
.ask .go:hover { background: rgba(255, 255, 255, 0.42); }
.ask .caption { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.results {
  position: absolute; z-index: 20; top: 70px; left: 0; right: 0; text-align: left; display: none;
  background: rgba(16, 20, 27, 0.96); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); max-height: 420px; overflow: auto;
}
.results.open { display: block; }
.results a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.results a:hover, .results a.sel { background: rgba(255, 255, 255, 0.06); }
.results .r-main { flex: 1; min-width: 0; }
.results .r-main b { font-weight: 600; }
.results .r-main small { display: block; color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .r-num { text-align: right; font: 12px var(--mono); }
.results .empty { padding: 14px; color: var(--muted); font-size: 13px; }
.laurels { display: flex; justify-content: center; gap: 40px; margin-top: 26px; flex-wrap: wrap; }
.laurel { display: flex; align-items: center; gap: 6px; color: #fff; }
.laurel svg { width: 22px; height: 48px; flex: none; opacity: 0.95; }
.laurel .l-txt { text-align: center; min-width: 96px; }
.laurel .l-big { font: 600 17px/1.1 var(--serif); letter-spacing: 0.01em; }
.laurel .l-cap { font: 500 9px/1.35 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86); }

/* ---------- terminal sections ---------- */
.wrap { width: min(1320px, 100%); margin: 0 auto; padding: 0 24px; }
.sec { padding: 28px 0; scroll-margin-top: 56px; }
#markets, #table { scroll-margin-top: 56px; }
.sec-pulse { padding-top: 56px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { margin: 10px 0 0; font: 400 clamp(36px, 4.6vw, 58px)/1 var(--serif); letter-spacing: -0.02em; }
.sec-head h2 em, .cta-band h2 em { font-style: italic; color: #cfe6ff; }
.sec-lede { max-width: 420px; margin: 0; color: var(--muted); font-size: 14.5px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center .sec-lede { max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.eyebrow.light { color: #fff; opacity: 0.9; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18); animation: pulse 2s ease-in-out infinite; display: inline-block; }
.statbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 16px; background: var(--line); overflow: hidden; }
.statbar > div { padding: 16px 18px 15px; background: linear-gradient(180deg, #121823, var(--bg-2)); }
.statbar small { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.statbar b { display: block; margin-top: 6px; font: 500 21px/1.1 var(--mono); letter-spacing: -0.01em; }
.statbar i { display: block; margin-top: 4px; font-style: normal; font-size: 11.5px; color: var(--faint); }

/* highlight cards */
.hl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.hl-card { position: relative; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(159, 211, 255, 0.05), transparent 46%), var(--bg-2); padding: 14px 6px 6px; overflow: hidden; }
.hl-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(207, 230, 255, 0.35), transparent); }
.hl-card header { display: flex; align-items: center; gap: 9px; padding: 0 10px 10px; }
.hl-card h3 { margin: 0; flex: 1; font: 400 20px var(--serif); letter-spacing: -0.01em; }
.hl-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; background: rgba(159, 211, 255, 0.1); color: var(--accent); }
.hl-card[data-k="gainers"] .hl-ic { background: rgba(61, 220, 151, 0.12); color: var(--up); }
.hl-card[data-k="graduating"] .hl-ic { background: rgba(245, 184, 75, 0.12); color: #f5b84b; }
.hl-card[data-k="fresh"] .hl-ic { background: rgba(200, 170, 255, 0.12); color: #c8aaff; }
.hl-card header button { background: none; border: 0; font-size: 11.5px; color: var(--faint); padding: 4px 6px; border-radius: 6px; }
.hl-card header button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.hl-list { list-style: none; margin: 0; padding: 0; }
.hl-list a { display: grid; grid-template-columns: 14px auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.hl-list a:hover { background: rgba(255, 255, 255, 0.04); }
.hl-list .n { font: 11px var(--mono); color: var(--faint); }
.hl-list .s { min-width: 0; }
.hl-list .s b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-list .s small { display: block; font: 11.5px var(--mono); color: var(--faint); }
.hl-list .r { text-align: right; font: 12.5px var(--mono); }
.hl-list .r small { display: block; font-size: 11px; color: var(--faint); }
.hl-empty { padding: 26px 10px; text-align: center; color: var(--faint); font-size: 12.5px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.filters label { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.filters label:has(select:not([value=""])) { border-color: var(--line-2); }
.filters label span { padding: 0 4px 0 10px; font-size: 11px; letter-spacing: 0.04em; color: var(--faint); }
.filters select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--text); font: 12px var(--mono); padding: 6px 24px 6px 4px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23889' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.filters select option { background: var(--bg-2); }
.filters label.on { border-color: rgba(159, 211, 255, 0.4); background: rgba(159, 211, 255, 0.06); }
.filters .reset { background: none; border: 0; font-size: 12px; color: var(--accent); padding: 6px 8px; }
.c-spark { text-align: center !important; }
td.spark { padding-top: 6px !important; padding-bottom: 6px !important; }
td.spark svg { width: 76px; height: 28px; display: block; margin: 0 auto; overflow: visible; }

/* activity + leaderboard */
.duo2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.mk-sum { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.mk-sum > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.mk-sum > div:last-child { border-right: 0; }
.mk-sum small { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.mk-sum b { font: 500 16px var(--mono); }
.mk-chart { position: relative; height: 250px; margin: 14px 14px 0; }
.mk-chart svg { width: 100%; height: 100%; display: block; }
.mk-tip { position: absolute; pointer-events: none; top: 0; transform: translateX(-50%); background: rgba(16, 20, 27, 0.95); border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 9px; font: 11.5px/1.45 var(--mono); white-space: nowrap; opacity: 0; transition: opacity 0.12s ease; }
.mk-tip.on { opacity: 1; }
.mk-legend { display: flex; gap: 16px; padding: 10px 14px 14px; font-size: 11.5px; color: var(--faint); }
.mk-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-v { background: linear-gradient(180deg, #9fd3ff, #4d86c8); }
.lg-l { background: #f5b84b; border-radius: 50% !important; }
table.lb td:first-child a { display: inline-flex; align-items: center; gap: 9px; }
table.lb .av { width: 22px; height: 22px; border-radius: 50%; flex: none; }
table.lb .medal { font: 11px var(--mono); color: var(--faint); width: 16px; display: inline-block; text-align: right; }

/* engine features */
.sec-engine { padding: 76px 0 40px; }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat article { border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; background: radial-gradient(120% 80% at 0% 0%, rgba(159, 211, 255, 0.07), transparent 60%), var(--bg-2); transition: border-color 0.2s ease, transform 0.2s ease; }
.feat article:hover { border-color: var(--line-2); transform: translateY(-2px); }
.f-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: #cfe6ff; border: 1px solid var(--line); }
.f-ic svg { width: 20px; height: 20px; }
.feat h3 { margin: 18px 0 8px; font: 400 24px/1.1 var(--serif); letter-spacing: -0.01em; }
.feat p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.feat code { display: inline-block; font: 11px var(--mono); color: var(--faint); border-top: 1px solid var(--line); padding-top: 12px; width: 100%; }

/* cta band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; padding: 76px 24px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); }
.cta-sky { position: absolute; inset: 0; z-index: -2; background: #4a78ab url("/assets/sky.jpg") center 60% / cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 20, 40, 0.1), rgba(8, 20, 40, 0.42)); }
.cta-band h2 { margin: 14px auto 12px; max-width: 760px; font: 400 clamp(34px, 5vw, 64px)/1 var(--serif); letter-spacing: -0.02em; color: #fff; }
.cta-band h2 em { color: #fff; }
.cta-band p { margin: 0 auto; max-width: 460px; color: rgba(255, 255, 255, 0.82); }
.cta-row { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.btn-ghost { display: inline-flex; align-items: center; border-radius: 7px; padding: 12px 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; margin-top: 20px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { margin: 0; font: 400 22px var(--serif); letter-spacing: -0.01em; }
.panel-h h3 { font-size: 19px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 7px 11px; border-radius: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tabs button.on { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.tscroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { position: sticky; top: 0; background: var(--bg-2); text-align: right; font-weight: 500; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.grid th:first-child, table.grid td:first-child { text-align: left; }
table.grid tbody tr { cursor: pointer; transition: background 0.12s ease; }
table.grid tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table.grid tr.flash-up { animation: fu 1.2s ease; }
table.grid tr.flash-down { animation: fd 1.2s ease; }
@keyframes fu { from { background: rgba(61, 220, 151, 0.14); } }
@keyframes fd { from { background: rgba(255, 107, 114, 0.14); } }
.tok { display: flex; align-items: center; gap: 10px; font-family: var(--sans); min-width: 0; }
.tok .rank { width: 18px; color: var(--faint); font: 12px var(--mono); text-align: right; flex: none; }
.tok .tx { min-width: 0; }
.tok .sym { font-weight: 600; }
.tok .nm { color: var(--faint); font-size: 12px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; display: block; }
.logo { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; background: var(--bg-3); }
.logo.ph { display: grid; place-items: center; font: 600 11px var(--sans); color: #fff; }
.logo.sm { width: 22px; height: 22px; font-size: 9px; }
.logo.lg { width: 52px; height: 52px; font-size: 16px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 500 10.5px var(--sans); letter-spacing: 0.04em; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.pill.grad { background: rgba(61, 220, 151, 0.12); color: var(--up); }
.pill.curve { background: rgba(159, 211, 255, 0.12); color: var(--accent); }
.bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; min-width: 54px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #6fb6ff, #3ddc97); border-radius: 4px; }
.feed { max-height: 560px; overflow: auto; }
.feed .item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed .item:hover { background: rgba(255, 255, 255, 0.03); }
.feed .item .grow { flex: 1; min-width: 0; }
.feed .item small { display: block; color: var(--faint); font-size: 11.5px; }
.feed .item.new { animation: slidein 0.5s ease; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); background: rgba(159, 211, 255, 0.08); } }
.more { display: block; width: 100%; padding: 12px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.more:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.syncnote { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 12.5px; display: none; }
.syncnote.show { display: block; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--faint); font-size: 12px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* ---------- token page ---------- */
.skyband { position: relative; height: 230px; margin-bottom: -150px; overflow: hidden; }
.skyband::before { content: ""; position: absolute; inset: 0; background: url("/assets/sky.jpg") center 40% / cover; }
.skyband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 14, 19, 0.15), var(--bg)); }
.thead { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 92px; }
.thead .id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.thead h1 { margin: 0; font: 400 40px/1 var(--serif); letter-spacing: -0.01em; }
.thead h1 span { font: 500 15px var(--sans); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.thead .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--line-2); }
button.chip { cursor: pointer; }
.thead .px { text-align: right; }
.thead .px b { display: block; font: 500 34px/1.1 var(--mono); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 22px; }
.chartbox { height: 470px; position: relative; }
.chartbox .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.tfbar { display: flex; gap: 2px; align-items: center; }
.tfbar button { background: none; border: 0; padding: 5px 9px; border-radius: 7px; font: 12px var(--mono); color: var(--muted); }
.tfbar button.on { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.tfbar .sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 6px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; }
.kv > div { padding: 12px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.kv > div:nth-child(2n) { border-right: 0; }
.kv small { display: block; font-size: 11px; color: var(--faint); letter-spacing: 0.05em; text-transform: uppercase; }
.kv b { font: 500 15px var(--mono); }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.frames button { background: none; border: 0; border-right: 1px solid var(--line); padding: 10px 6px; text-align: center; }
.frames button:last-child { border-right: 0; }
.frames button.on { background: rgba(255, 255, 255, 0.05); }
.frames small { display: block; font-size: 11px; color: var(--faint); }
.frames b { font: 500 13px var(--mono); }
.split { padding: 12px 14px; display: grid; gap: 10px; }
.split .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.split .duo { grid-column: 1 / -1; display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.split .duo i { display: block; height: 100%; }
.split .duo i.b { background: var(--up); }
.split .duo i.s { background: var(--down); }
.score { display: flex; align-items: center; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); }
.score .ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c, var(--up)) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); }
.score .ring b { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font: 600 15px var(--mono); }
.flags { padding: 4px 0; }
.flag { display: flex; gap: 10px; padding: 9px 14px; font-size: 12.5px; }
.flag .lv { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.flag.high .lv { background: var(--down); }
.flag.watch .lv { background: #f5b84b; }
.flag.ok .lv { background: var(--up); }
.flag.info .lv { background: rgba(255, 255, 255, 0.3); }
.flag b { display: block; font-weight: 600; }
.flag span { color: var(--muted); }
.side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1081px) { .board > .side { position: sticky; top: 80px; align-self: start; } }
.links { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; }
.lower { margin-top: 20px; }
.tag { font: 500 11px var(--sans); padding: 2px 7px; border-radius: 6px; }
.tag.buy { background: rgba(61, 220, 151, 0.12); color: var(--up); }
.tag.sell { background: rgba(255, 107, 114, 0.12); color: var(--down); }
.desc { padding: 12px 14px; color: var(--muted); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.loading { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.notfound { padding: 140px 16px; text-align: center; }
.notfound h1 { font: 400 48px var(--serif); margin: 0 0 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: #fff; color: #0b0e13; font-size: 13px; font-weight: 500; padding: 9px 14px; border-radius: 9px; transition: all 0.2s ease; pointer-events: none; z-index: 99; }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1180px) { .hl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1080px) {
  .board, .layout, .duo2 { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 16px; }
  .nav .links { display: none; }
  .nav .right .link { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 96px; }
  .hero .sub { font-size: 14px; }
  .ask form { height: 56px; border-radius: 18px; padding-left: 18px; }
  .laurels { gap: 18px; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .hl, .feat { grid-template-columns: 1fr; }
  .mk-sum { grid-template-columns: repeat(2, 1fr); }
  .mk-sum > div:nth-child(2) { border-right: 0; }
  .mk-sum > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .mk-chart { height: 200px; }
  .sec-pulse { padding-top: 36px; }
  .cta-band { padding: 56px 18px; border-radius: 20px; }
  .thead .px { text-align: left; }
  .thead h1 { font-size: 32px; }
  .chartbox { height: 360px; }
  .tok .nm { max-width: 110px; }
}

/* the markets table: tighter cells so every column fits next to the feeds */
#grid th, #grid td { padding-left: 9px; padding-right: 9px; }
#grid .tok .nm { max-width: 130px; }
.filters label { flex: 0 0 auto; }
.duo2 > .panel { display: flex; flex-direction: column; }
.duo2 .mk-chart { flex: 1; min-height: 230px; }

/* =========================================================
   Lower page atmosphere: the sky's light carries on below the hero
   ========================================================= */
main#markets { position: relative; isolation: isolate; overflow: hidden; }
.atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.atmos i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.atmos .g1 { width: 900px; height: 520px; left: 50%; top: -160px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(74, 120, 171, 0.55), transparent); }
.atmos .g2 { width: 640px; height: 640px; right: -220px; top: 900px; background: radial-gradient(closest-side, rgba(61, 220, 151, 0.16), transparent); }
.atmos .g3 { width: 720px; height: 720px; left: -260px; top: 1900px; background: radial-gradient(closest-side, rgba(159, 211, 255, 0.2), transparent); }
.atmos .g4 { width: 1000px; height: 700px; left: 50%; bottom: 240px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(200, 170, 255, 0.12), transparent); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.5) 30%, transparent 55%, rgba(0, 0, 0, 0.4) 80%, transparent); mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.5) 30%, transparent 55%, rgba(0, 0, 0, 0.4) 80%, transparent); }
main#markets::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ticker tape */
.tape { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: rgba(10, 14, 20, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tape-track { display: flex; width: max-content; animation: tape 80s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }
.tape-item { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; font-size: 12.5px; white-space: nowrap; border-right: 1px solid var(--line); }
.tape-item b { font-weight: 600; }
.tape-item .num { color: var(--muted); font-size: 12px; }
.tape-item:hover { background: rgba(255, 255, 255, 0.04); }
.logo.xs { width: 18px; height: 18px; font-size: 8px; }

/* coin watermark behind the first heading */
.sec-pulse { position: relative; }
.coin-wm { position: absolute; z-index: -1; right: max(2vw, calc(50% - 720px)); top: -30px; width: 380px; height: 380px; opacity: 0.09; filter: grayscale(1) blur(0.5px);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); animation: spin 120s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .coin-wm { animation: none; } }
.sec-head h2 em { background: linear-gradient(100deg, #e6f3ff 10%, #9fd3ff 55%, #7ee0b8); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }

/* glass panels with a lit top edge */
.panel, .hl-card, .feat article, .statbar { position: relative; background: linear-gradient(180deg, rgba(24, 31, 43, 0.78), rgba(14, 18, 25, 0.78)) !important; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.statbar { gap: 0; }
.statbar > div { background: transparent; border-right: 1px solid var(--line); }
.statbar > div:last-child { border-right: 0; }
.statbar b { background: linear-gradient(180deg, #fff, #b9c7da); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel-h { background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); }
table.grid th { background: rgba(16, 21, 29, 0.96); }
.hl-card::after { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 2px; border-radius: 2px; background: var(--hl, #9fd3ff); filter: blur(1px); opacity: 0.8; }
.hl-card[data-k="trending"] { --hl: #9fd3ff; } .hl-card[data-k="gainers"] { --hl: #3ddc97; } .hl-card[data-k="graduating"] { --hl: #f5b84b; } .hl-card[data-k="fresh"] { --hl: #c8aaff; }
.hl-card { background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--hl) 12%, transparent), transparent 70%), linear-gradient(180deg, rgba(24, 31, 43, 0.8), rgba(14, 18, 25, 0.8)) !important; }
.hl-card:hover, .feat article:hover { border-color: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.hl-card { transition: transform 0.2s ease, border-color 0.2s ease; }

/* section dividers: a thin line of light between sections */
.sec + .sec::before { content: ""; display: block; width: min(1272px, calc(100% - 48px)); height: 1px; margin: 0 auto 28px; background: linear-gradient(90deg, transparent, rgba(159, 211, 255, 0.22), transparent); }
.sec-pulse::before { display: none !important; }

/* engine flow diagram */
.flow { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr 1.1fr 1fr; align-items: center; margin: 6px 0 34px; }
.flow .node { justify-self: center; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px 20px; min-width: 170px; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(26, 34, 47, 0.85), rgba(14, 18, 25, 0.85)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.flow .node b { font: 400 19px var(--serif); }
.flow .node small { font: 11px var(--mono); color: var(--faint); }
.flow .n-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); font-size: 18px; color: #cfe6ff; }
.flow .core { padding: 22px 26px; border-color: rgba(159, 211, 255, 0.35); box-shadow: 0 0 0 6px rgba(159, 211, 255, 0.04), 0 0 60px -10px rgba(159, 211, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.flow .core img { width: 58px; height: 58px; border-radius: 50%; animation: spin 40s linear infinite; }
.flow .pipe { position: relative; height: 2px; background: linear-gradient(90deg, rgba(159, 211, 255, 0.15), rgba(159, 211, 255, 0.45), rgba(159, 211, 255, 0.15)); }
.flow .pipe span { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font: 10.5px var(--mono); letter-spacing: 0.08em; color: var(--faint); white-space: nowrap; }
.flow .pipe i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #cfe6ff; box-shadow: 0 0 12px #9fd3ff; animation: flowdot 2.4s linear infinite; }
.flow .pipe i:nth-child(2) { animation-delay: 0.8s; } .flow .pipe i:nth-child(3) { animation-delay: 1.6s; }
@keyframes flowdot { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow .pipe i, .flow .core img { animation: none; } }
.feat article { overflow: hidden; }
.feat article::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(159, 211, 255, 0.14), transparent); }
.feat article:nth-child(2)::before { background: radial-gradient(closest-side, rgba(61, 220, 151, 0.14), transparent); }
.feat article:nth-child(3)::before { background: radial-gradient(closest-side, rgba(245, 184, 75, 0.14), transparent); }
.feat article:nth-child(4)::before { background: radial-gradient(closest-side, rgba(200, 170, 255, 0.14), transparent); }
.feat .f-ic { position: relative; }

@media (max-width: 1080px) {
  .flow { grid-template-columns: 1fr; gap: 0; justify-items: center; }
  .flow .pipe { width: 2px; height: 46px; background: linear-gradient(180deg, rgba(159, 211, 255, 0.15), rgba(159, 211, 255, 0.45), rgba(159, 211, 255, 0.15)); }
  .flow .pipe span { left: 14px; top: 50%; transform: translateY(-50%); }
  .flow .pipe i { left: -3px !important; animation-name: flowdown; }
  @keyframes flowdown { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
  .coin-wm { width: 240px; height: 240px; }
}
@media (max-width: 760px) {
  .statbar > div { border-bottom: 1px solid var(--line); }
  .statbar > div:nth-child(2n) { border-right: 0; }
}
