/**
 * Crypto Live Feed — coin dashboard.
 *
 * Every visual value is a custom property on the board wrapper, declared
 * through :where() so it carries no specificity. A widget control, a theme
 * rule or a line of custom CSS then wins on ordinary cascade rules, and this
 * file never needs an !important anywhere.
 */

:where(.clf-board) {
	/* Brand. Amber is the primary, cyan the secondary; the two together are
	   what make the glass panels read as one system rather than a default. */
	--clf-brand: #fc9902;
	--clf-brand-2: #02d4fc;

	--clf-bg: #0a0d14;
	--clf-card: rgba(255, 255, 255, .04);
	--clf-row: transparent;
	--clf-row-alt: rgba(255, 255, 255, .018);
	--clf-hover: rgba(252, 153, 2, .07);
	--clf-text: #eef2f8;
	--clf-muted: #8892a6;
	--clf-border: rgba(255, 255, 255, .09);
	--clf-accent: var(--clf-brand);
	--clf-up: #16c784;
	--clf-down: #ea3943;
	--clf-chain: #8b95a7;

	/* Glass. The blur is what separates the panel from whatever is behind it;
	   the tint and the hairline give it an edge to catch light on. */
	--clf-glass: rgba(255, 255, 255, .05);
	--clf-glass-edge: rgba(255, 255, 255, .12);
	--clf-blur: 18px;
	--clf-glow: 0 0 0 1px rgba(252, 153, 2, .16), 0 18px 50px -20px rgba(2, 212, 252, .28);

	--clf-radius: 12px;
	--clf-row-height: 52px;
	--clf-font-size: 13px;
	--clf-gap: 0px;
	--clf-cards: 3;
	--clf-pad: 14px;
	--clf-head: rgba(255, 255, 255, .02);
	--clf-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
}

:where(.clf-board.clf-theme-light) {
	--clf-bg: #ffffff;
	--clf-card: rgba(15, 23, 42, .03);
	--clf-row-alt: rgba(15, 23, 42, .02);
	--clf-hover: rgba(252, 153, 2, .08);
	--clf-text: #0f172a;
	--clf-muted: #64748b;
	--clf-border: rgba(15, 23, 42, .1);
	--clf-head: rgba(15, 23, 42, .02);
	--clf-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .18);
	--clf-glass: rgba(255, 255, 255, .6);
	--clf-glass-edge: rgba(15, 23, 42, .08);
	--clf-glow: 0 0 0 1px rgba(252, 153, 2, .18), 0 18px 44px -22px rgba(2, 212, 252, .3);
}

:where(.clf-board.clf-theme-auto) {
	--clf-bg: #ffffff;
	--clf-card: rgba(15, 23, 42, .03);
	--clf-row-alt: rgba(15, 23, 42, .02);
	--clf-hover: rgba(252, 153, 2, .08);
	--clf-text: #0f172a;
	--clf-muted: #64748b;
	--clf-border: rgba(15, 23, 42, .1);
	--clf-head: rgba(15, 23, 42, .02);
	--clf-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .18);
	--clf-glass: rgba(255, 255, 255, .6);
	--clf-glass-edge: rgba(15, 23, 42, .08);
	--clf-glow: 0 0 0 1px rgba(252, 153, 2, .18), 0 18px 44px -22px rgba(2, 212, 252, .3);
}

@media (prefers-color-scheme: dark) {
	:where(.clf-board.clf-theme-auto) {
		--clf-bg: #0a0d14;
		--clf-card: rgba(255, 255, 255, .04);
		--clf-row-alt: rgba(255, 255, 255, .018);
		--clf-hover: rgba(252, 153, 2, .07);
		--clf-text: #eef2f8;
		--clf-muted: #8892a6;
		--clf-border: rgba(255, 255, 255, .09);
		--clf-head: rgba(255, 255, 255, .02);
		--clf-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
		--clf-glass: rgba(255, 255, 255, .05);
		--clf-glass-edge: rgba(255, 255, 255, .12);
	}
}

.clf-board {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	color: var(--clf-text);
	background: var(--clf-bg);
	border: 1px solid var(--clf-border);
	border-radius: var(--clf-radius);
	font-size: var(--clf-font-size);
	line-height: 1.45;
	overflow: hidden;
	box-shadow: var(--clf-shadow);
	-webkit-font-smoothing: antialiased;
}

.clf-board *,
.clf-board *::before,
.clf-board *::after {
	box-sizing: inherit;
}

.clf-board [hidden] {
	display: none !important;
}

/* ------------------------------------------------------------------ head */

.clf-board__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--clf-border);
}

.clf-board__heading {
	margin: 0;
	font-size: calc(var(--clf-font-size) * 1.25);
	font-weight: 700;
	color: var(--clf-text);
	letter-spacing: -.01em;
}

.clf-board__live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(22, 199, 132, .12);
	color: var(--clf-up);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
}

.clf-board__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--clf-up);
	animation: clf-board-pulse 1.8s ease-in-out infinite;
}

@keyframes clf-board-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: .35; transform: scale(.8); }
}

@media (prefers-reduced-motion: reduce) {
	.clf-board__dot { animation: none; }
}

/* ----------------------------------------------------------------- metas */

.clf-board__metas {
	overflow-x: auto;
	border-bottom: 1px solid var(--clf-border);
	scrollbar-width: thin;
}

.clf-board__metas-track {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	white-space: nowrap;
	min-width: min-content;
}

.clf-board__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--clf-card);
	border: 1px solid var(--clf-border);
	font-size: 12px;
}

.clf-board__meta-name { font-weight: 700; }
.clf-board__meta-cap { color: var(--clf-muted); }

/* ----------------------------------------------------------------- stats */

.clf-board__stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	background: var(--clf-border);
	border-bottom: 1px solid var(--clf-border);
}

.clf-board__stat-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: var(--clf-bg);
}

.clf-board__stat-card-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--clf-muted);
}

.clf-board__stat-card-value {
	font-size: calc(var(--clf-font-size) * 1.35);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- toolbar */

.clf-board__toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 16px;
	border-bottom: 1px solid var(--clf-border);
}

.clf-board__tabs {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: var(--clf-card);
}

.clf-board__tab {
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 8px;
	background: transparent;
	color: var(--clf-muted);
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	transition: background .15s ease, color .15s ease;
}

.clf-board__tab:hover { color: var(--clf-text); }

.clf-board__tab.is-active {
	background: var(--clf-accent);
	color: #0b0e14;
}

.clf-board__chains {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	overflow-x: auto;
	scrollbar-width: none;
}

.clf-board__chains::-webkit-scrollbar { display: none; }

.clf-board__chip {
	appearance: none;
	cursor: pointer;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid var(--clf-border);
	background: transparent;
	color: var(--clf-muted);
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	white-space: nowrap;
	transition: border-color .15s ease, color .15s ease;
}

.clf-board__chip:hover {
	color: var(--clf-text);
	border-color: var(--clf-chain);
}

.clf-board__chip.is-active {
	color: var(--clf-text);
	border-color: var(--clf-chain);
	box-shadow: inset 0 0 0 1px var(--clf-chain);
}

.clf-board__search {
	margin-left: auto;
	flex: 0 1 240px;
	min-width: 150px;
}

.clf-board__search-input {
	width: 100%;
	padding: 7px 12px;
	border-radius: 8px;
	border: 1px solid var(--clf-border);
	background: var(--clf-card);
	color: var(--clf-text);
	font-size: 12px;
	font-family: inherit;
}

.clf-board__search-input::placeholder { color: var(--clf-muted); }

.clf-board__search-input:focus-visible {
	outline: 2px solid var(--clf-accent);
	outline-offset: 1px;
}

/* ----------------------------------------------------------------- table */

.clf-board__scroll {
	width: 100%;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.clf-board__table {
	width: 100%;
	min-width: 900px;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.clf-board__table th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 9px 12px;
	text-align: right;
	white-space: nowrap;
	background: var(--clf-bg);
	background-image: linear-gradient(var(--clf-head), var(--clf-head));
	border-bottom: 1px solid var(--clf-border);
	color: var(--clf-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.clf-board__table th.clf-col--rank,
.clf-board__table th.clf-col--token,
.clf-board__table th.clf-col--chain,
.clf-board__table th.clf-col--links { text-align: left; }

.clf-board__table td {
	padding: 0 12px;
	height: var(--clf-row-height);
	text-align: right;
	white-space: nowrap;
	border-bottom: 1px solid var(--clf-border);
}

.clf-board__table td.clf-col--rank,
.clf-board__table td.clf-col--token,
.clf-board__table td.clf-col--chain,
.clf-board__table td.clf-col--links { text-align: left; }

.clf-board__table tbody tr:nth-child(even) { background: var(--clf-row-alt); }
.clf-board__table tbody tr:hover { background: var(--clf-hover); }
.clf-board__table tbody tr:last-child td { border-bottom: 0; }

.clf-col--rank { width: 46px; }
.clf-col--token { min-width: 210px; }

.clf-board__sort {
	appearance: none;
	border: 0;
	background: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

.clf-board__sort:hover { color: var(--clf-text); }
.clf-board__sort.is-active { color: var(--clf-accent); }

.clf-board__caret {
	width: 0;
	height: 0;
	border-left: 3.5px solid transparent;
	border-right: 3.5px solid transparent;
	opacity: 0;
	transition: opacity .15s ease;
}

.clf-board__caret--desc { border-top: 4px solid currentColor; }
.clf-board__caret--asc { border-bottom: 4px solid currentColor; }
.clf-board__sort.is-active .clf-board__caret { opacity: 1; }

/* ------------------------------------------------------------------ cell */

.clf-board__rank {
	color: var(--clf-muted);
	font-size: 11px;
	font-weight: 600;
}

.clf-board__token {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.clf-board__icon {
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: var(--clf-card);
}

.clf-board__icon--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	color: #0b0e14;
	background: var(--clf-chain);
}

.clf-board__names {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.clf-board__symbol {
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.clf-board__symbol a {
	color: inherit;
	text-decoration: none;
}

.clf-board__symbol a:hover { color: var(--clf-accent); }

.clf-board__quote {
	color: var(--clf-muted);
	font-weight: 500;
	font-size: .9em;
}

.clf-board__name {
	color: var(--clf-muted);
	font-size: .85em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px;
}

.clf-board__badge {
	flex: none;
	padding: 2px 6px;
	border-radius: 5px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--clf-chain);
	background: color-mix(in srgb, var(--clf-chain) 14%, transparent);
}

/* color-mix is recent; this is the fallback everywhere it is missing. */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
	.clf-board__badge { background: rgba(139, 149, 167, .14); }
}

.clf-board__boost {
	flex: none;
	font-size: 10px;
	font-weight: 700;
	color: var(--clf-accent);
}

.clf-board__price { font-weight: 600; }
.clf-board__price sub {
	font-size: .72em;
	vertical-align: baseline;
	position: relative;
	bottom: -.25em;
}

.clf-board__age { color: var(--clf-muted); }
.clf-board__buys { color: var(--clf-up); }
.clf-board__sells { color: var(--clf-down); }
.clf-board__muted { color: var(--clf-muted); }

.clf-board__change { font-weight: 600; }
.clf-board__change--up { color: var(--clf-up); }
.clf-board__change--down { color: var(--clf-down); }
.clf-board__change--flat { color: var(--clf-muted); }

.clf-board__chain,
.clf-board__dex {
	font-size: 11px;
	font-weight: 600;
	color: var(--clf-muted);
}

.clf-board__chain { color: var(--clf-chain); }

.clf-board__links {
	display: inline-flex;
	gap: 4px;
}

.clf-board__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 5px;
	background: var(--clf-card);
	border: 1px solid var(--clf-border);
	color: var(--clf-muted);
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
}

.clf-board__link:hover {
	color: var(--clf-accent);
	border-color: var(--clf-accent);
}

/* Price flash on live update. */
.clf-board__row.is-up,
.clf-board__card.is-up { animation: clf-flash-up 1.1s ease-out; }

.clf-board__row.is-down,
.clf-board__card.is-down { animation: clf-flash-down 1.1s ease-out; }

@keyframes clf-flash-up {
	0% { background: color-mix(in srgb, var(--clf-up) 22%, transparent); }
	100% { background: transparent; }
}

@keyframes clf-flash-down {
	0% { background: color-mix(in srgb, var(--clf-down) 22%, transparent); }
	100% { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.clf-board__row.is-up,
	.clf-board__row.is-down,
	.clf-board__card.is-up,
	.clf-board__card.is-down { animation: none; }
}

/* ----------------------------------------------------------------- cards */

.clf-board__grid {
	display: grid;
	grid-template-columns: repeat(var(--clf-cards), minmax(0, 1fr));
	gap: 12px;
	padding: 14px;
}

.clf-board--compact .clf-board__grid,
.clf-board--tickers .clf-board__grid {
	grid-template-columns: 1fr;
	gap: var(--clf-gap);
	padding: 0;
}

.clf-board__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--clf-pad);
	border-radius: calc(var(--clf-radius) - 4px);
	background: var(--clf-card);
	border: 1px solid var(--clf-border);
}

.clf-board--compact .clf-board__card,
.clf-board--tickers .clf-board__card {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid var(--clf-border);
	background: transparent;
	padding: 10px 16px;
}

.clf-board--compact .clf-board__card:last-child,
.clf-board--tickers .clf-board__card:last-child { border-bottom: 0; }

.clf-board__card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.clf-board__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
	gap: 8px 12px;
}

.clf-board--compact .clf-board__stats,
.clf-board--tickers .clf-board__stats {
	display: flex;
	gap: 16px;
	flex: 0 1 auto;
	overflow-x: auto;
	scrollbar-width: none;
}

.clf-board--compact .clf-board__stats::-webkit-scrollbar,
.clf-board--tickers .clf-board__stats::-webkit-scrollbar { display: none; }

.clf-board__stat {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.clf-board__stat-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--clf-muted);
}

.clf-board__stat-value {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.clf-board__card-links { margin-top: auto; }

/* ----------------------------------------------------------- empty/footer */

.clf-board__empty {
	padding: 44px 20px;
	text-align: center;
}

.clf-board__empty-title {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: calc(var(--clf-font-size) * 1.1);
}

.clf-board__empty-hint {
	margin: 0;
	color: var(--clf-muted);
	font-size: .95em;
	max-width: 46ch;
	margin-inline: auto;
	line-height: 1.6;
}

.clf-board__footer {
	display: flex;
	justify-content: center;
	padding: 14px;
	border-top: 1px solid var(--clf-border);
}

.clf-board__more {
	appearance: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid var(--clf-border);
	background: var(--clf-card);
	color: var(--clf-text);
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	transition: border-color .15s ease, color .15s ease;
}

.clf-board__more:hover:not(:disabled) {
	color: var(--clf-accent);
	border-color: var(--clf-accent);
}

.clf-board__more:disabled {
	cursor: default;
	opacity: .6;
}

.clf-board__spinner {
	display: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-top-color: transparent;
	animation: clf-board-spin .7s linear infinite;
}

.clf-board__more[data-loading="1"] .clf-board__spinner { display: block; }

@keyframes clf-board-spin {
	to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
	:where(.clf-board) { --clf-cards: 2; }
}

@media (max-width: 782px) {
	:where(.clf-board) {
		--clf-cards: 1;
		--clf-row-height: 46px;
	}

	.clf-board__toolbar { padding: 10px 12px; }
	.clf-board__search { margin-left: 0; flex-basis: 100%; }
	.clf-board__stats-row { grid-template-columns: repeat(2, 1fr); }
	.clf-board__head { padding: 12px; }
	.clf-board__grid { padding: 10px; }

	/* The table keeps the token column pinned while the numbers scroll, so a
	   row never loses the name it belongs to. */
	.clf-board__table th.clf-col--token,
	.clf-board__table td.clf-col--token {
		position: sticky;
		left: 0;
		z-index: 1;
		background: var(--clf-bg);
		box-shadow: 1px 0 0 var(--clf-border);
	}

	.clf-board__table th.clf-col--token { z-index: 3; }
	.clf-board__table tbody tr:nth-child(even) td.clf-col--token { background: var(--clf-card); }
	.clf-board__name { max-width: 110px; }
}

@media (max-width: 480px) {
	.clf-board__stats-row { grid-template-columns: 1fr 1fr; }
	.clf-board__tabs { width: 100%; overflow-x: auto; }
}

/* ------------------------------------------------------------------ */
/* Buy pressure                                                        */
/* ------------------------------------------------------------------ */

.clf-col--pressure { width: 108px; }

.clf-board__table td.clf-col--pressure { text-align: left; }

.clf-board__pressure {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: 100%;
}

.clf-board__pressure-bar {
	position: relative;
	flex: 1 1 auto;
	height: 5px;
	min-width: 40px;
	border-radius: 999px;
	/* The track is the sell side; the fill is the buy side, so the split
	   between them is readable without a legend. */
	background: color-mix(in srgb, var(--clf-down) 55%, transparent);
	overflow: hidden;
}

.clf-board__pressure-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--clf-up);
	transition: width .35s ease;
}

.clf-board__pressure-value {
	flex: none;
	min-width: 30px;
	text-align: right;
	color: var(--clf-muted);
	font-size: .85em;
	font-variant-numeric: tabular-nums;
}

@supports not (background: color-mix(in srgb, red 10%, transparent)) {
	.clf-board__pressure-bar { background: rgba(234, 57, 67, .5); }
}

@media (prefers-reduced-motion: reduce) {
	.clf-board__pressure-fill { transition: none; }
}

/* ------------------------------------------------------------------ */
/* Modern polish                                                       */
/* ------------------------------------------------------------------ */

.clf-board__table tbody tr {
	transition: background .12s ease;
}

.clf-board__icon {
	box-shadow: 0 0 0 1px var(--clf-border);
}

.clf-board__card {
	transition: border-color .15s ease, transform .15s ease;
}

.clf-board--cards .clf-board__card:hover {
	border-color: color-mix(in srgb, var(--clf-accent) 45%, var(--clf-border));
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.clf-board__card { transition: none; }
	.clf-board--cards .clf-board__card:hover { transform: none; }
}

.clf-board__stat-card {
	position: relative;
}

.clf-board__stat-card::after {
	content: "";
	position: absolute;
	inset: auto auto 0 0;
	width: 26px;
	height: 2px;
	border-radius: 999px;
	background: var(--clf-accent);
	opacity: .8;
}

.clf-board__tab.is-active {
	box-shadow: 0 1px 6px -1px color-mix(in srgb, var(--clf-accent) 60%, transparent);
}

@supports not (box-shadow: 0 0 0 color-mix(in srgb, red 10%, transparent)) {
	.clf-board__tab.is-active { box-shadow: none; }
}

/* The symbol should read as the thing you click. */
.clf-board__symbol a {
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: color .12s ease, text-decoration-color .12s ease;
}

.clf-board__symbol a:hover {
	text-decoration: underline;
	text-decoration-color: currentColor;
}

/* ================================================================== */
/* Glass                                                               */
/* ================================================================== */

/* The panel itself: a tinted sheet over whatever the page put behind it,
   with a brand-tinted edge and a soft double glow. The gradient border is
   painted as a pseudo-element rather than a border, so the two brand
   colours can run across it without fighting the radius. */
.clf-board {
	position: relative;
	background: var(--clf-glass);
	backdrop-filter: blur(var(--clf-blur)) saturate(150%);
	-webkit-backdrop-filter: blur(var(--clf-blur)) saturate(150%);
	border-color: var(--clf-glass-edge);
	box-shadow: var(--clf-glow), var(--clf-shadow);
	isolation: isolate;
}

.clf-board::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	border-radius: inherit;
	/* A quiet wash of both brand colours, so the glass has something to
	   refract instead of sitting on flat grey. */
	background:
		radial-gradient(120% 90% at 0% 0%, rgba(252, 153, 2, .16), transparent 55%),
		radial-gradient(120% 90% at 100% 0%, rgba(2, 212, 252, .14), transparent 55%),
		var(--clf-bg);
}

.clf-board::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(252, 153, 2, .55), rgba(2, 212, 252, .45) 55%, transparent);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
}

/* Backdrop filter is not everywhere; without it the tint alone would be
   too transparent to read against a busy page. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.clf-board { background: var(--clf-bg); }
}

.clf-board__head,
.clf-board__metas,
.clf-board__toolbar,
.clf-board__stats-row,
.clf-board__footer {
	background: transparent;
}

.clf-board__table th {
	background: transparent;
	backdrop-filter: blur(var(--clf-blur));
	-webkit-backdrop-filter: blur(var(--clf-blur));
}

/* The heading gets the brand gradient as text. */
.clf-board__heading {
	background: linear-gradient(100deg, var(--clf-brand), var(--clf-brand-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@supports not (background-clip: text) {
	.clf-board__heading { color: var(--clf-text); }
}

/* Stat cards become glass tiles rather than a divided strip. */
.clf-board__stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--clf-border);
}

.clf-board__stat-card {
	padding: 13px 15px;
	border-radius: 12px;
	background: var(--clf-card);
	border: 1px solid var(--clf-border);
	overflow: hidden;
}

.clf-board__stat-card::after {
	inset: auto auto 0 0;
	width: 100%;
	height: 2px;
	border-radius: 0;
	background: linear-gradient(90deg, var(--clf-brand), var(--clf-brand-2));
	opacity: .9;
}

.clf-board__stat-card-value {
	background: linear-gradient(100deg, var(--clf-text), var(--clf-text));
	-webkit-background-clip: text;
	background-clip: text;
}

/* Tabs and chips pick up the gradient when active. */
.clf-board__tabs {
	background: var(--clf-card);
	border: 1px solid var(--clf-border);
}

.clf-board__tab.is-active {
	background: linear-gradient(120deg, var(--clf-brand), #ffb340);
	color: #10131a;
	box-shadow: 0 4px 14px -4px rgba(252, 153, 2, .6);
}

.clf-board__chip.is-active {
	border-color: transparent;
	background: linear-gradient(120deg, rgba(252, 153, 2, .18), rgba(2, 212, 252, .18));
	box-shadow: inset 0 0 0 1px var(--clf-chain);
}

.clf-board__search-input {
	background: var(--clf-card);
	border-color: var(--clf-border);
}

.clf-board__search-input:focus {
	border-color: var(--clf-brand);
	box-shadow: 0 0 0 3px rgba(252, 153, 2, .18);
	outline: none;
}

/* Rows lift on hover with a cyan rail on the leading edge. */
.clf-board__table tbody tr {
	position: relative;
}

.clf-board__table tbody tr:hover {
	background: var(--clf-hover);
	box-shadow: inset 3px 0 0 var(--clf-brand-2);
}

.clf-board__icon {
	box-shadow: 0 0 0 1px var(--clf-glass-edge), 0 2px 8px -2px rgba(0, 0, 0, .5);
}

.clf-board__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 7px;
	background: var(--clf-card);
	border: 1px solid var(--clf-border);
	font-size: 10.5px;
}

/* The top three get the brand treatment, which is what makes a ranked
   board scannable at a glance. */
.clf-board__row:nth-child(1) .clf-board__rank,
.clf-board__card:nth-child(1) .clf-board__rank {
	background: linear-gradient(120deg, var(--clf-brand), #ffc164);
	border-color: transparent;
	color: #10131a;
	font-weight: 800;
}

.clf-board__row:nth-child(2) .clf-board__rank,
.clf-board__card:nth-child(2) .clf-board__rank {
	background: linear-gradient(120deg, rgba(2, 212, 252, .85), rgba(2, 212, 252, .45));
	border-color: transparent;
	color: #06121a;
	font-weight: 800;
}

.clf-board__row:nth-child(3) .clf-board__rank,
.clf-board__card:nth-child(3) .clf-board__rank {
	border-color: var(--clf-brand);
	color: var(--clf-brand);
	font-weight: 800;
}

.clf-board__symbol a:hover { color: var(--clf-brand); }

.clf-board__boost {
	padding: 1px 6px;
	border-radius: 999px;
	background: rgba(252, 153, 2, .16);
	color: var(--clf-brand);
}

.clf-board__more {
	background: var(--clf-card);
	border-color: var(--clf-border);
}

.clf-board__more:hover:not(:disabled) {
	color: #10131a;
	border-color: transparent;
	background: linear-gradient(120deg, var(--clf-brand), #ffb340);
}

.clf-board__live {
	background: linear-gradient(120deg, rgba(2, 212, 252, .18), rgba(252, 153, 2, .14));
	color: var(--clf-brand-2);
}

.clf-board__dot { background: var(--clf-brand-2); }

.clf-board__card {
	background: var(--clf-card);
	border-color: var(--clf-border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.clf-board--cards .clf-board__card:hover {
	border-color: rgba(252, 153, 2, .5);
	box-shadow: 0 12px 30px -18px rgba(2, 212, 252, .55);
}

.clf-board__pressure-fill {
	background: linear-gradient(90deg, var(--clf-up), #4ade80);
}

/* ================================================================== */
/* Responsive                                                          */
/* ================================================================== */

@media (max-width: 1200px) {
	.clf-board__table { min-width: 820px; }
}

@media (max-width: 782px) {
	:where(.clf-board) { --clf-blur: 12px; }

	.clf-board__stats-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 12px;
	}

	.clf-board__toolbar {
		gap: 8px;
		padding: 10px 12px;
	}

	.clf-board__tabs {
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.clf-board__tabs::-webkit-scrollbar { display: none; }
	.clf-board__tab { flex: none; }

	.clf-board__table th.clf-col--token,
	.clf-board__table td.clf-col--token {
		background: var(--clf-bg);
	}
}

@media (max-width: 600px) {
	:where(.clf-board) {
		--clf-row-height: 44px;
		--clf-font-size: 12px;
	}

	.clf-board__stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.clf-board__stat-card { padding: 10px 12px; }
	.clf-board__stat-card-value { font-size: calc(var(--clf-font-size) * 1.25); }
	.clf-board__icon { width: 24px; height: 24px; }
	.clf-board__name { display: none; }
	.clf-board__heading { font-size: calc(var(--clf-font-size) * 1.2); }
}

@media (max-width: 420px) {
	.clf-board__stats-row { grid-template-columns: 1fr; }
	.clf-board__search { flex-basis: 100%; }
}

/* Some phones and most reduced-transparency settings do badly with a blur
   over moving content; drop it rather than ship something unreadable. */
@media (prefers-reduced-transparency: reduce) {
	.clf-board {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: var(--clf-bg);
	}
}
