/* Fletch: monochrome terminal (ink on paper, inverted in dark). Color only where it means something: up, down, warn. */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --bg-2: #f6f6f6; --panel: #ffffff; --raise: #f3f4f6; --line: #e5e7eb; --line-2: #c9ccd1;
  --fg: #000000; --fg-2: #374151; --muted: #6b7280; --dot: #e5e7eb;
  --up: #0f9d58; --up-bg: rgba(15, 157, 88, .10); --down: #dc2626; --down-bg: rgba(220, 38, 38, .09); --warn: #b45309; --warn-bg: rgba(180, 83, 9, .1);
  --invert-bg: #000; --invert-fg: #fff;
  --shadow: 0 20px 50px -25px rgba(0, 0, 0, .35);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --bg-2: #070707; --panel: #0b0b0b; --raise: #151515; --line: #1f1f1f; --line-2: #3a3a3a;
  --fg: #ffffff; --fg-2: #d4d4d4; --muted: #8a8a8a; --dot: #262626;
  --up: #34d399; --up-bg: rgba(52, 211, 153, .12); --down: #f87171; --down-bg: rgba(248, 113, 113, .12); --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .12);
  --invert-bg: #fff; --invert-fg: #000;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
}
:root {
  --display: "Orbitron", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 12px; --top: 58px; --foot: 30px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 500 13.5px/1.45 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100svh; padding: var(--top) 0 var(--foot); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0, "tnum" 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }
[hidden] { display: none !important; }
::selection { background: var(--fg); color: var(--bg); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto; height: var(--top); z-index: 20; display: flex; align-items: center; gap: 18px; padding: 0 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 30px; height: 30px; color: var(--fg); }
.mark .hd { fill: var(--up); stroke: var(--up); }
.word { font: 900 17px var(--display); text-transform: uppercase; letter-spacing: .16em; display: inline-flex; }
.word sup { font-size: .5em; margin-left: 1px; top: -.2em; }
.word .ch { display: inline-block; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; transition: color .2s, background .2s; }
.nav a:hover { color: var(--fg); }
.nav a.on { color: var(--fg); background: var(--raise); }
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); transition: border-color .2s; }
.search:focus-within { border-color: var(--fg); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
kbd { font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.eth { color: var(--muted); font-size: 12px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.live.on i { background: var(--up); box-shadow: 0 0 0 4px var(--up-bg); animation: beat 2s infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 7px transparent; } }
.icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; }
.icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.btn { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 700; transition: transform .15s, background .2s, color .2s, opacity .2s; white-space: nowrap; }
.btn:hover { border-color: var(--fg); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.btn.solid:hover { opacity: .85; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- status bar ---------- */
.status { position: fixed; inset: auto 0 0; height: var(--foot); z-index: 20; display: flex; align-items: center; gap: 18px; padding: 0 18px; font-size: 11px; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }
.status .grow { flex: 1; }

/* ---------- board ---------- */
.strip { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.strip canvas { position: absolute; inset: 0; z-index: 0; }
.strip > div { position: relative; z-index: 1; padding: 16px 18px; border-right: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--bg) 40%, transparent)); }
.strip > div:last-child { border-right: 0; }
.strip small { display: block; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.strip b { display: block; font: 700 22px var(--mono); margin-top: 4px; letter-spacing: -.02em; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(100svh - var(--top) - var(--foot) - 79px); }
.col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.col-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.col-head h2 { margin: 0; font: 900 12px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.col-head .n { font: 11px var(--mono); color: var(--muted); }
.col-head .quick { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 11px var(--mono); color: var(--muted); }
.col-head .quick input { width: 58px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font: 12px var(--mono); }
.list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.tabs-m { display: none; }

.card { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: border-color .2s, transform .2s, background .4s; cursor: pointer; }
.card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.card.flash-b { background: var(--up-bg); }
.card.flash-s { background: var(--down-bg); }
.card.enter { animation: enter .55s cubic-bezier(.2, .9, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.logo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--raise); display: grid; place-items: center; font: 900 15px var(--display); color: var(--muted); overflow: hidden; }
.logo { position: relative; }
.logo b { font-weight: 900; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.c-title b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.c-title span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta { display: flex; align-items: center; gap: 8px; font: 11.5px var(--mono); color: var(--muted); flex-wrap: wrap; }
.c-meta .age { color: var(--fg-2); }
.c-meta i { font-style: normal; }
.soc { display: inline-flex; gap: 5px; }
.soc a { width: 16px; height: 16px; display: grid; place-items: center; color: var(--muted); }
.soc a:hover { color: var(--fg); }
.soc svg { width: 12px; height: 12px; fill: currentColor; }
.flags { display: flex; gap: 4px; flex-wrap: wrap; }
.flag { font: 600 10px var(--mono); padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.flag.bad { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.flag.good { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.c-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.c-side .mc { font: 700 13px var(--mono); }
.c-side .mc small { color: var(--muted); font-weight: 500; margin-right: 3px; }
.c-side .v { font: 11px var(--mono); color: var(--muted); }
.qb { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font: 700 11px var(--mono); }
.qb:hover { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fg); border-radius: 3px; transition: width .6s; }
.bar.hot i { background: linear-gradient(90deg, var(--fg), var(--up)); }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.skel { height: 78px; border-radius: var(--r); background: linear-gradient(90deg, var(--raise), var(--bg-2), var(--raise)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- trending ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 22px 18px 40px; }
.page h1 { font: 900 22px var(--display); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 4px; }
table.tbl { width: 100%; border-collapse: collapse; font: 12.5px var(--mono); }
.tbl th { text-align: right; font-weight: 600; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.tbl td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child, .tbl th.l, .tbl td.l { text-align: left; }
.tbl tr.row { cursor: pointer; }
.tbl tr.row:hover td { background: var(--bg-2); }
.tk { display: flex; align-items: center; gap: 10px; font-family: var(--sans); }
.tk .logo { width: 32px; height: 32px; border-radius: 8px; font-size: 10px; }
.tk b { font-weight: 700; }

/* ---------- token page ---------- */
.tok { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: calc(100svh - var(--top) - var(--foot)); }
.tok-main { min-width: 0; overflow-y: auto; border-right: 1px solid var(--line); }
.tok-side { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.t-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.t-head .logo { width: 48px; height: 48px; }
.t-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-name h1 { margin: 0; font-size: 19px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.t-name h1 span { color: var(--muted); font-size: 13px; font-weight: 500; }
.ca { display: inline-flex; align-items: center; gap: 6px; font: 11.5px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 10px; cursor: pointer; background: transparent; }
.ca:hover { color: var(--fg); border-color: var(--line-2); }
.ca i { font-style: normal; padding: 1px 8px; border-radius: 999px; background: var(--raise); color: var(--fg); }
.t-stats { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.t-stats div small { display: block; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.t-stats div b { font: 700 15px var(--mono); }
.chart-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 999px; font: 600 11px var(--mono); color: var(--muted); }
.seg button.on { background: var(--invert-bg); color: var(--invert-fg); }
.chart { height: 420px; position: relative; border-bottom: 1px solid var(--line); }
.chart .note { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 12px var(--mono); pointer-events: none; }
.changes { display: flex; gap: 6px; margin-left: auto; font: 11.5px var(--mono); }
.changes span { padding: 3px 8px; border-radius: 6px; background: var(--raise); }
.tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 9px 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--fg); border-bottom-color: var(--fg); }
.tabs button i { font: 11px var(--mono); font-style: normal; color: var(--muted); margin-left: 4px; }
.tab-body { padding: 4px 4px 20px; }
.tbl .b-row td:nth-child(2) { color: var(--up); }
.tbl .s-row td:nth-child(2) { color: var(--down); }
.tbl tr.new td { animation: rowin 1.2s ease-out; }
@keyframes rowin { from { background: var(--raise); } }
.addr { color: var(--fg-2); }
.addr:hover { text-decoration: underline; }
.tag { font: 600 10px var(--mono); padding: 1px 6px; border-radius: 999px; background: var(--raise); color: var(--muted); margin-left: 6px; }
.tag.dev { background: var(--warn-bg); color: var(--warn); }
.tag.sniper { background: var(--down-bg); color: var(--down); }
.tag.you { background: var(--invert-bg); color: var(--invert-fg); }
.pctbar { display: inline-block; width: 70px; height: 4px; border-radius: 4px; background: var(--raise); vertical-align: middle; margin-left: 8px; overflow: hidden; }
.pctbar i { display: block; height: 100%; background: var(--fg); }

.box { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px; }
.box h3 { margin: 0 0 10px; font: 900 11px var(--display); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.box h3 .r { margin-left: auto; font: 11px var(--mono); color: var(--muted); letter-spacing: 0; text-transform: none; }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 999px; background: var(--raise); margin-bottom: 12px; }
.bs button { border: 0; border-radius: 999px; padding: 8px; font-weight: 800; background: transparent; color: var(--muted); }
.bs button.on.buy { background: var(--up); color: #fff; }
.bs button.on.sell { background: var(--down); color: #fff; }
.amt { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.amt:focus-within { border-color: var(--fg); }
.amt input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 18px var(--mono); }
.amt span { font: 600 12px var(--mono); color: var(--muted); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 10px; }
.presets button { height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; font: 600 12px var(--mono); }
.presets button:hover { border-color: var(--fg); }
.kv { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--muted); padding: 3px 0; }
.kv b { color: var(--fg); font-weight: 600; }
.go { width: 100%; height: 46px; margin-top: 10px; border-radius: 12px; border: 0; font: 800 14px var(--sans); color: #fff; background: var(--up); transition: opacity .2s, transform .15s; }
.go.sell { background: var(--down); }
.go:active { transform: scale(.98); }
.go:disabled { opacity: .5; cursor: not-allowed; }
.slip { display: flex; align-items: center; gap: 6px; font: 11.5px var(--mono); color: var(--muted); margin-top: 8px; }
.slip input { width: 52px; height: 24px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); font: 11.5px var(--mono); }
.msg { min-height: 18px; font-size: 12px; margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.msg.err { color: var(--down); }
.msg.ok { color: var(--up); }
.prog { height: 8px; border-radius: 8px; background: var(--raise); overflow: hidden; margin: 6px 0; }
.prog i { display: block; height: 100%; border-radius: 8px; background: var(--fg); transition: width .6s; }
.ai { font-size: 13px; line-height: 1.6; white-space: pre-wrap; color: var(--fg-2); min-height: 60px; }
.ai.wait::after { content: "▍"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.desc { font-size: 13px; color: var(--fg-2); overflow-wrap: anywhere; }
.links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.links a { font: 600 11.5px var(--mono); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.links a:hover { border-color: var(--fg); }

/* ---------- wallet modal, toast ---------- */
.modal { width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); color: var(--fg); padding: 22px; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.modal h3 { margin: 0 0 4px; font: 900 15px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.modal .x { position: absolute; right: 12px; top: 10px; }
.modal .x button { border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.wallets { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.wallets button { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 700; text-align: left; }
.wallets button:hover { border-color: var(--fg); }
.wallets img { width: 28px; height: 28px; border-radius: 7px; }
.wallets small { margin-left: auto; color: var(--muted); font: 11px var(--mono); }
.toast { position: fixed; left: 50%; bottom: calc(var(--foot) + 16px); transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--invert-bg); color: var(--invert-fg); font-weight: 700; font-size: 13px; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile ---------- */
@media (max-width: 1100px) {
  .tok { grid-template-columns: 1fr; height: auto; }
  .tok-main { border-right: 0; overflow: visible; }
  .tok-side { overflow: visible; }
  .t-stats { margin-left: 0; width: 100%; }
}
@media (max-width: 860px) {
  :root { --top: 100px; }
  .top { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand right" "nav search"; height: var(--top); padding: 8px 12px; gap: 8px 10px; align-items: center; }
  .brand { grid-area: brand; }
  .right { grid-area: right; justify-self: end; margin: 0; }
  .nav { grid-area: nav; }
  .nav a { padding: 6px 10px; font-size: 12.5px; }
  .search { grid-area: search; max-width: none; height: 34px; }
  .search kbd, .eth, .live b { display: none; }
  .status span:nth-child(n+3) { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(2) { border-right: 0; }
  .strip > div { padding: 10px 12px; }
  .strip b { font-size: 17px; }
  .tabs-m { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); position: sticky; top: var(--top); background: var(--bg); z-index: 5; }
  .tabs-m button { flex: 1; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font: 900 10.5px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .tabs-m button.on { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
  .cols { display: block; height: auto; }
  .col { border: 0; display: none; }
  .col.show { display: flex; }
  .col-head { display: none; }
  .list { overflow: visible; }
  .chart { height: 320px; }
  .t-stats { gap: 14px; }
  .tok-side { padding: 12px; }
  .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- admin-controlled bits: banner, featured row, referral link ---------- */
.banner { position: relative; margin: 10px 18px 0; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); color: var(--fg); font-weight: 600; font-size: 13px; }
.banner.good { border-color: color-mix(in srgb, var(--up) 45%, transparent); background: var(--up-bg); }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-bg); }
.featured { margin: 14px 18px 0; }
.featured h2 { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.f-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.fcard { flex: 0 0 auto; min-width: 210px; max-width: 280px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); cursor: pointer; scroll-snap-align: start; }
.fcard:hover { border-color: var(--fg); }
.fcard > div { min-width: 0; display: grid; }
.fcard b { font-weight: 700; }
.fcard span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .mc { margin-left: auto; font: 600 12px var(--mono); color: var(--fg); }
.ref-btn { border: 0; background: none; padding: 0; color: var(--fg); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 720px) { .banner, .featured { margin-left: 16px; margin-right: 16px; } }

/* ---------- opening animation ---------- */
#intro { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.no-intro #intro { display: none; }
#introDots { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, transparent, var(--bg) 85%); pointer-events: none; }
.i-core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }
.i-mark { width: 92px; height: 92px; color: var(--fg); overflow: visible; }
.i-h { fill: var(--up); stroke: var(--up); transform-box: fill-box; transform-origin: 30% 50%; }
.i-word { display: flex; overflow: hidden; font: 900 clamp(40px, 7vw, 74px)/1.05 var(--display); letter-spacing: .14em; padding: 0 0 4px .14em; }
.i-word span { display: inline-block; }
.i-status { display: grid; gap: 8px; justify-items: center; font: 600 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.i-status i { display: block; width: 180px; height: 2px; border-radius: 2px; background: var(--raise); overflow: hidden; }
.i-status b { display: block; height: 100%; width: 0; background: var(--up); box-shadow: 0 0 12px var(--up); }
.i-streak { position: absolute; z-index: 3; top: -10%; bottom: -10%; left: 0; width: 9%; opacity: 0; pointer-events: none; transform: translateX(-15vw); mix-blend-mode: screen; filter: blur(6px); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--up) 18%, transparent) 55%, color-mix(in srgb, var(--up) 55%, transparent) 92%, transparent); }

/* board appears card by card after the intro / first load */
.card.rise { animation: rise .6s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.strip > div { animation: rise .6s cubic-bezier(.2, .9, .2, 1) both; }
.strip > div:nth-child(3) { animation-delay: .05s; } .strip > div:nth-child(4) { animation-delay: .1s; } .strip > div:nth-child(5) { animation-delay: .15s; }

/* ---------- UI polish ---------- */
.top { box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(0, 0, 0, .6); }
.col-head h2::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--fg); }
.col[data-colbox="almost"] .col-head h2::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.col[data-colbox="pool"] .col-head h2::before { background: var(--up); box-shadow: 0 0 10px var(--up); }
.col-head .n { padding: 1px 7px; border-radius: 999px; background: var(--raise); }
.card { background: linear-gradient(180deg, color-mix(in srgb, var(--raise) 45%, var(--panel)), var(--panel)); transition: border-color .25s, transform .25s, box-shadow .25s, background .4s; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--up) 18%, transparent); }
.card .logo { border-radius: 12px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent); }
.card.flash-b { background: var(--up-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 45%, transparent); }
.card.flash-s { background: var(--down-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--down) 45%, transparent); }
.bar { height: 4px; }
.bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--up) 40%, var(--fg)), var(--up)); }
.bar.hot i { background: linear-gradient(90deg, var(--up), var(--warn)); box-shadow: 0 0 10px color-mix(in srgb, var(--warn) 60%, transparent); }
.qb { transition: background .2s, color .2s, border-color .2s, transform .15s; }
.qb:hover { background: var(--up); border-color: var(--up); color: #000; }
.qb:active { transform: scale(.94); }
.strip b { font-size: 24px; }

/* token page */
.t-head { padding: 16px 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--raise) 55%, transparent), transparent); }
.t-head .logo { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-2); }
.t-name h1 { font-size: 22px; }
.t-stats { gap: 8px; }
.t-stats > div { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); min-width: 92px; }
.t-stats div b { font-size: 14.5px; }
.chart-bar { padding: 10px 14px; }
.seg button { transition: background .2s, color .2s; }
.seg button:hover:not(.on) { color: var(--fg); }
.chart { height: 460px; margin: 10px 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--raise) 70%, transparent), transparent 70%); }
.legend { position: absolute; left: 12px; top: 10px; z-index: 3; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font: 600 11.5px var(--mono); color: var(--muted); pointer-events: none; }
.legend b { color: var(--fg); font-weight: 700; }
.legend .sym { font: 800 13px var(--sans); color: var(--fg); }
.legend .up { color: var(--up); } .legend .down { color: var(--down); }
.tabs button { position: relative; transition: color .2s; }
.tabs button.on { border-bottom-color: transparent; }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--up); animation: tabin .35s cubic-bezier(.2, .9, .2, 1); }
@keyframes tabin { from { transform: scaleX(0); } }
.box { background: linear-gradient(180deg, color-mix(in srgb, var(--raise) 40%, var(--panel)), var(--panel)); }
.bs button { transition: background .25s, color .25s; }
.bs button.on.buy { color: #000; box-shadow: 0 6px 18px -8px var(--up); }
.bs button.on.sell { box-shadow: 0 6px 18px -8px var(--down); }
.go { color: #000; background: linear-gradient(180deg, color-mix(in srgb, var(--up) 85%, #fff), var(--up)); box-shadow: 0 10px 26px -12px var(--up); }
.go.sell { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--down) 85%, #fff), var(--down)); box-shadow: 0 10px 26px -12px var(--down); }
.go:hover:not(:disabled) { filter: brightness(1.06); }
.presets button { transition: border-color .2s, background .2s; }
.presets button:hover { background: var(--raise); }
.prog { height: 10px; }
.prog i { background: linear-gradient(90deg, color-mix(in srgb, var(--up) 40%, var(--fg)), var(--up)); box-shadow: 0 0 12px color-mix(in srgb, var(--up) 50%, transparent); }
@media (max-width: 860px) {
  .chart { height: 340px; margin: 8px; }
  .t-stats > div { min-width: 0; flex: 1 1 30%; }
}
