/* Fonts are served from this site (SIL Open Font License, see /fonts/OFL.txt): no third-party requests. */
@font-face { font-family: 'Archivo Black'; font-weight: 400; font-display: swap; src: url(/fonts/archivo-black-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo Black'; font-weight: 400; font-display: swap; src: url(/fonts/archivo-black-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-weight: 500 700; font-display: swap; src: url(/fonts/space-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-weight: 500 700; font-display: swap; src: url(/fonts/space-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url(/fonts/space-mono-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url(/fonts/space-mono-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --green: #16c75a;
  --green-deep: #0fa548;
  --up: #12a84c;
  --down: #c2261b;
  --up-soft: #b8f5cf;
  --down-soft: #ffc9c2;
  --mint: #e9fbef;
  --yellow: #ffe94a;
  --white: #fff;
  --black: #000;
  --line: 3px solid var(--black);
  --line-thin: 2px solid var(--black);
  --shadow: 6px 6px 0 var(--black);
  --shadow-sm: 3px 3px 0 var(--black);
  --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --body: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Space Mono', Consolas, monospace;
  --gutter: clamp(14px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--black);
  font: 500 16px/1.45 var(--body);
  background-color: var(--green);
  background-image:
    linear-gradient(var(--green-deep) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-deep) 1px, transparent 1px);
  background-size: 44px 44px;
}
/* At least one screen tall, so the footer starts below the fold and doesn't jump while data loads. */
main { flex: 1; outline: none; min-width: 0; min-height: 100vh; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 2px var(--black); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Black box: used by all text on the site. */
.b {
  display: inline-block;
  max-width: 100%;
  padding: .12em .5em;
  background: var(--white);
  border: var(--line-thin);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.b:hover { background: var(--yellow); }
.b-y { background: var(--yellow); }
.b-g { background: var(--green); }
.mono { font-family: var(--mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tnum { font-family: var(--mono); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.up { background: var(--up-soft); }
.down { background: var(--down-soft); }
.flat { background: var(--white); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; }
.skip:focus { top: 8px; }

/* Buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .5em 1.1em;
  font: 700 1rem/1.1 var(--body);
  color: var(--black); background: var(--white);
  border: var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none; cursor: pointer;
  transition: transform .08s, box-shadow .08s, background-color .08s;
}
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--black); background-color: var(--yellow); color: var(--black); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--black); }
.btn:disabled { cursor: not-allowed; background: #cfcfcf; box-shadow: none; }
.btn-black { background: var(--black); color: var(--white); }
.btn-yellow { background: var(--yellow); }
.btn-yellow:hover:not(:disabled) { background: var(--white); }
.btn-lg { min-height: 58px; padding: .6em 1.5em; font-size: 1.15rem; box-shadow: var(--shadow); }
.btn-sm { min-height: 38px; padding: .3em .8em; font-size: .9rem; box-shadow: none; }
.btn.is-active, .btn.is-active:hover:not(:disabled) { background: var(--black); color: var(--white); }

.input {
  width: 100%; min-height: 44px; padding: .45em .7em;
  font: 500 1rem var(--body); color: var(--black);
  background: var(--white); border: var(--line); border-radius: 0;
}
.input::placeholder { color: #555; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 10px var(--gutter);
  background: var(--white); border-bottom: var(--line);
}
.logo {
  font: 400 1.6rem/1.15 var(--display);
  background: var(--green); border-width: 3px; box-shadow: var(--shadow-sm);
}
.nav { display: flex; gap: 8px; }
.nav-link { font-weight: 700; padding: .35em .7em; }
.nav-link.active, .nav-link.active:hover { background: var(--black); color: var(--white); }
.search { flex: 1 1 240px; display: flex; min-width: 0; }
.search .input { border-right: 0; min-width: 0; }
.search .btn, .search .btn:hover:not(:disabled), .search .btn:active:not(:disabled) { box-shadow: none; transform: none; }
.chain-pill { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; padding: .35em .7em; background: var(--yellow); white-space: nowrap; }
.dot { width: 10px; height: 10px; background: var(--up); border: 2px solid var(--black); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { background: var(--white); } }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 5vw, 64px) var(--gutter);
}
.hero h1 {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  font: 400 clamp(2.3rem, 6vw, 5.6rem)/1 var(--display);
  text-transform: uppercase; letter-spacing: -.02em;
}
.hero h1 .b { border-width: 4px; padding: .08em .22em; box-shadow: var(--shadow); }
.hero h1 .b:nth-child(2) { margin-left: clamp(10px, 4vw, 56px); }
.hero h1 .b:nth-child(3) { transform: rotate(-2deg); }
.hero-sub { margin-top: 24px; max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 30px; max-width: 44rem; }
.stat { padding: 8px 10px; background: var(--white); border: var(--line); min-width: 0; }
.stat strong { display: block; font: 400 clamp(1rem, 1.55vw, 1.45rem)/1.2 var(--display); white-space: nowrap; }
.stat-note { margin-top: 10px; max-width: 44rem; font-size: .76rem; }

.hero-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; align-items: start; max-width: 560px; width: 100%; justify-self: center; }
.tilt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0;
  padding: 14px; text-decoration: none; color: inherit;
  background: var(--white); border: var(--line); box-shadow: var(--shadow);
  transition: transform .15s;
}
.tilt:nth-child(1) { transform: rotate(-3deg); background: var(--yellow); }
.tilt:nth-child(2) { margin-top: 28px; transform: rotate(3deg); }
.tilt:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); transform: rotate(-2deg); background: var(--up-soft); }
.tilt.tilt:hover, .tilt.tilt:focus-visible { transform: rotate(0) scale(1.04); z-index: 5; }
.tilt-head { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.tilt-price { font: 400 clamp(1.1rem, 2vw, 1.5rem)/1.2 var(--display); }

/* Token icons */
.icon { flex: none; width: 36px; height: 36px; object-fit: cover; background: var(--white); border: var(--line-thin); }
.icon-lg { width: 64px; height: 64px; border-width: 3px; }
.icon-fallback { display: inline-flex; align-items: center; justify-content: center; font: 400 1rem var(--display); background: var(--yellow); text-transform: uppercase; }
.icon-lg.icon-fallback { font-size: 1.8rem; }

/* Ticker */
.marquee { overflow: hidden; padding: 12px 0; background: var(--black); border-block: var(--line); }
.marquee:empty { display: none; }
.marquee-track { display: flex; width: max-content; gap: 12px; animation: slide 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; font-weight: 700; }
.tick .tnum { font-size: .82rem; }
@keyframes slide { to { transform: translateX(calc(-50% - 6px)); } }

/* Section */
.section { padding: clamp(28px, 4vw, 52px) var(--gutter); }
.section:empty { display: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.h2 { font: 400 clamp(1.5rem, 3.6vw, 2.8rem)/1.1 var(--display); text-transform: uppercase; border-width: 3px; box-shadow: var(--shadow-sm); }
.panel { padding: 14px; background: var(--white); border: var(--line); box-shadow: var(--shadow); min-width: 0; }

.movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mover-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mover { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px; text-decoration: none; border: var(--line-thin); }
.mover:hover { background: var(--yellow); }
.mover .sym { font-weight: 700; justify-self: start; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; background: var(--white); border: var(--line); box-shadow: var(--shadow); }

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin: 0 var(--gutter) clamp(32px, 5vw, 64px); padding: clamp(24px, 5vw, 56px); background: var(--black); }
.cta .h2 { box-shadow: none; }

/* Warning flags */
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.flag { font: 700 .68rem/1.3 var(--mono); padding: .1em .4em; text-transform: uppercase; background: var(--yellow); }
.flag-danger { background: var(--down-soft); }
.flag-new { background: #cfe8ff; }

/* Market page */
.page { padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(32px, 5vw, 64px); }
.page-title { margin-bottom: 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tools label { display: flex; align-items: center; gap: 8px; }
.tools select { width: auto; min-height: 38px; padding-block: .2em; }
.alert { display: block; width: 100%; font-weight: 700; background: var(--yellow); border-width: 3px; padding: .5em .8em; margin-bottom: 14px; }

.table-wrap { overflow-x: auto; background: var(--white); border: var(--line); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 8px; text-align: right; vertical-align: middle; border-bottom: var(--line-thin); }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--mint); border-bottom-width: 3px; white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table th a, .table th .b { font-family: var(--mono); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.table th a.sorted, .table th a.sorted:hover { background: var(--black); color: var(--white); }
.table tbody tr:hover { background: var(--yellow); }
.cell-token { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.watch-btn { flex: none; min-width: 38px; padding-inline: 0; font-size: 1.05rem; }
.cell-names { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.cell-sym { font-weight: 700; }
.cell-sub { font-size: .76rem; max-width: 240px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination .btn { min-width: 44px; padding-inline: .7em; }
.pagination .current { background: var(--black); color: var(--white); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; background: var(--white); border: var(--line); box-shadow: var(--shadow); }

/* Pool page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: .9rem; }
.pool-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pool-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pool-names { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.pool-names h1 { font: 400 clamp(1.5rem, 3.4vw, 2.6rem)/1.08 var(--display); border-width: 3px; box-shadow: var(--shadow-sm); }
.pool-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pool-price .main { font: 400 clamp(1.5rem, 3.4vw, 2.6rem)/1.2 var(--display); border-width: 3px; }
.pool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.frame { padding: 5px; text-align: center; border: var(--line-thin); min-width: 0; }
.frame .tnum { display: block; font-size: .76rem; white-space: normal; }
.frame .mono { display: block; font-size: .68rem; }
.pressure { display: flex; height: 16px; margin-top: 8px; border: var(--line-thin); }
.pressure span { display: block; background: var(--up); }
.pressure span + span { background: var(--down); border-left: 2px solid var(--black); }
.addr { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.addr .b { font: 700 .76rem var(--mono); }
.warning { font-size: .82rem; background: var(--yellow); margin-top: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }

/* Backup panel on the watchlist and alerts pages */
.backup { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; max-width: 640px; }
.backup label.btn { cursor: pointer; }
/* The file input is hidden, so its label shows the keyboard focus. */
.backup .links:has(#backup-file:focus-visible) label.btn { outline: 4px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 2px var(--black); }

/* Chart */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8rem; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; border: 2px solid var(--black); }
.swatch-up { background: var(--up); }
.swatch-down { background: var(--down); }
.chart { position: relative; min-height: 440px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; outline: none; }
.chart svg:focus-visible { outline: 4px solid var(--yellow); box-shadow: none; }
.chart-axis { font: 700 11px var(--mono); fill: var(--black); }
.chart-tip {
  position: absolute; z-index: 3; pointer-events: none; display: none;
  flex-direction: column; align-items: flex-start; gap: 3px; padding: 6px;
  background: var(--white); border: var(--line); box-shadow: var(--shadow-sm);
}
.chart-tip .b { font: 700 .72rem var(--mono); white-space: nowrap; }
.chart-retry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.data-table { margin-top: 12px; }
.data-table summary { cursor: pointer; display: inline-block; font-weight: 700; padding: .12em .5em; border: var(--line-thin); }
.data-table .table-wrap { margin-top: 10px; max-height: 320px; overflow-y: auto; box-shadow: none; }

.trades-wrap { margin-top: 24px; }
.kind-buy { background: var(--up-soft); }
.kind-sell { background: var(--down-soft); }

/* Safety check and alerts */
.s-pass { background: var(--up-soft); }
.s-warn { background: var(--yellow); }
.s-fail { background: var(--down-soft); }
.s-unknown { background: var(--white); }

/* First-visit guide on the home page */
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--yellow); }
.intro-steps { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.intro-steps li { counter-increment: step; }
.intro-steps li::before { content: counter(step) ". "; font-weight: 700; }

/* About, status, changelog */
.doc { max-width: 1100px; }
.doc-block { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.levels { display: flex; flex-wrap: wrap; gap: 6px; }
.faq { display: grid; gap: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 10px; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.release { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.release-items { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding-left: 0; list-style: none; }
code.b { font-size: .8rem; }
.source-state { overflow-wrap: normal; }
@media (max-width: 620px) { .source-state { font-size: .6rem; padding-inline: .3em; } }
@media (max-width: 900px) { .status-grid { grid-template-columns: minmax(0, 1fr); } }

/* Risk score: 0 = no risks found, 100 = extreme */
.risk { white-space: nowrap; font-weight: 700; }
.risk-extreme { background: var(--black); color: var(--white); }
.risk-pending { background: var(--white); font-size: .75rem; }
.cell-risk { display: none; }
.risk-score { display: flex; align-items: baseline; gap: .4em; margin-bottom: 10px; padding: .4em .7em; border-width: 3px; }
.risk-score strong { font: 400 2rem/1 var(--display); }
#freshness { min-width: 22ch; }
.verdict { display: block; padding: .5em .7em; margin-bottom: 10px; border-width: 3px; }
.verdict strong { display: block; font-size: 1.05rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.check-status { flex: none; width: 48px; text-align: center; font-size: .7rem; font-weight: 700; }
.check-text { flex: 1; min-width: 0; font-size: .82rem; }
.check-text strong { display: block; }
.alert-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hide-risky { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; font-weight: 700; padding-inline: .6em; cursor: pointer; }

/* Footer and toasts */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px var(--gutter); background: var(--black); }
.site-footer .logo { box-shadow: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social { flex-basis: 100%; display: flex; padding-top: 6px; }
.x-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.x-link svg { display: block; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { padding: .55em .85em; font-weight: 700; background: var(--yellow); border: var(--line); box-shadow: var(--shadow-sm); }
.toast.err { background: var(--black); color: var(--white); border-color: var(--white); }

/* Skeleton */
.skel { min-height: 120px; background: rgb(255 255 255 / .55); border: var(--line); animation: pulse 1s ease-in-out infinite alternate; }
.skel-tall { min-height: 440px; }
@keyframes pulse { to { background: rgb(255 255 255 / .9); } }

@media (max-width: 1100px) {
  .pool-grid { grid-template-columns: minmax(0, 1fr); }
  /* One column: chart, then safety and alerts, then the long transaction list. */
  .pool-grid > div:first-child { display: contents; }
  .pool-grid > .side { order: 1; }
  .pool-grid .trades-wrap { order: 2; margin-top: 0; }
  .col-fdv { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stack { max-width: 460px; }
  .movers { grid-template-columns: minmax(0, 1fr); }
  .col-txns, .col-h1 { display: none; }
}
@media (max-width: 620px) {
  .site-header { position: static; }
  .site-header .logo { order: 1; }
  .chain-pill { order: 2; margin-left: auto; font-size: .85rem; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
  .nav-link { flex: 1; text-align: center; white-space: nowrap; font-size: .85rem; padding-inline: .3em; }
  .search { order: 4; flex-basis: 100%; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-lg { width: 100%; }
  .col-liq { display: none; }
  .cell-token { min-width: 92px; gap: 6px; flex-direction: column; align-items: flex-start; }
  .cell-token .watch-btn { order: 1; }
  .cell-token .icon { display: none; }
  .table th, .table td { padding: 6px 2px; }
  .table th:first-child, .table td:first-child { padding-left: 6px; }
  .table th a, .table th .b { font-size: .64rem; padding-inline: .25em; }
  .tnum { font-size: .7rem; padding-inline: .25em; }
  .cell-sub { max-width: 112px; font-size: .68rem; }
  .flag { font-size: .58rem; }
  .chart { min-height: 340px; }
  /* Phones: the risk badge moves into the token cell instead of its own column. */
  .col-risk { display: none; }
  .cell-risk { display: block; }
  .cell-risk .risk { font-size: .62rem; padding-inline: .3em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; }
}
