
/* Token modal ----------------------------------------------------------- */
.token-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 3, 0.78);
  backdrop-filter: blur(9px);
  animation: fadeIn 0.2s ease;
}

.token-panel {
  position: relative;
  width: min(1280px, 100%);
  outline: none;
  height: min(858px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(235, 255, 228, 0.15);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 0%, rgba(var(--lime-rgb), 0.035), transparent 32%),
    #090d0a;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.32s var(--ease);
}

.token-header {
  flex: 0 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.token-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.token-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.token-head-text {
  min-width: 0;
}

.token-kicker {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-title-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.token-title-line h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}

.token-fullname {
  color: #7e8b80;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.token-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
}

.contract-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.018);
  color: #78857a;
  font-family: var(--mono);
  font-size: 7px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contract-copy .icon {
  width: 10px;
  height: 10px;
}

.contract-copy:hover {
  color: var(--lime);
  border-color: rgba(var(--lime-rgb), 0.24);
}

.token-external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 7px;
  color: #647166;
  transition: color 0.2s ease;
}

.token-external .icon {
  width: 10px;
  height: 10px;
}

.token-external:hover {
  color: var(--lime);
}

.token-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-left: auto;
  padding-right: 4px;
}

.modal-price {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.modal-change {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
}

.modal-change b {
  font-weight: 500;
}

.modal-change span {
  color: var(--muted-2);
  font-size: 7px;
}

.token-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 9px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.trade-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--lime);
  color: #071006;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.trade-button .icon {
  width: 14px;
  height: 14px;
}

.trade-button:hover {
  background: #e1ff94;
  box-shadow: 0 0 26px rgba(var(--lime-rgb), 0.18);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #8a978b;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.modal-close .icon {
  width: 15px;
  height: 15px;
}

.token-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
}

.chart-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 15px 22px 13px;
}

.chart-toolbar {
  flex: 0 0 auto;
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chart-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.chart-kicker {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  color: var(--muted-2);
  white-space: nowrap;
}

.tf-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.tf-group button {
  height: 24px;
  min-width: 31px;
  padding: 0 7px;
  border-radius: 4px;
  color: #708074;
  font-family: var(--mono);
  font-size: 8.5px;
  transition: color 0.15s ease, background 0.15s ease;
}

.tf-group button:hover {
  color: var(--text-soft);
}

.tf-group button.active {
  color: #0b1308;
  background: var(--lime);
  font-weight: 600;
}

.chart-live-state {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.chart-local {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5f6d62;
  font-family: var(--mono);
  font-size: 6.5px;
}

.chart-local .icon {
  width: 10px;
  height: 10px;
  color: var(--lime);
}

.chart-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--green);
}

.chart-stage {
  position: relative;
  flex: 1;
  min-height: 300px;
  margin-top: 8px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  background:
    linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px);
  background-size: 82px 58px;
  background-position: 0 0;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
}

.chart-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.chart-watermark {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
  user-select: none;
}

.chart-watermark span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.chart-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: rgba(9, 13, 10, 0.82);
  color: #77857a;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  backdrop-filter: blur(2px);
}

.chart-loading-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.chart-loading-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--lime);
  opacity: 0.7;
  animation: chartBar 1s ease-in-out infinite;
}

.chart-loading-bars i:nth-child(1) { height: 9px; animation-delay: -0.8s; }
.chart-loading-bars i:nth-child(2) { height: 18px; animation-delay: -0.65s; }
.chart-loading-bars i:nth-child(3) { height: 12px; animation-delay: -0.5s; }
.chart-loading-bars i:nth-child(4) { height: 25px; animation-delay: -0.35s; }
.chart-loading-bars i:nth-child(5) { height: 15px; animation-delay: -0.2s; }
.chart-loading-bars i:nth-child(6) { height: 21px; animation-delay: -0.05s; }
.chart-loading-bars i:nth-child(7) { height: 11px; animation-delay: -0.6s; }
.chart-loading-bars i:nth-child(8) { height: 16px; animation-delay: -0.4s; }

.chart-error {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(9, 13, 10, 0.94);
  text-align: center;
  padding: 24px;
}

.chart-error-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 99, 119, 0.35);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
}

.chart-error strong {
  font-size: 12px;
  font-weight: 500;
}

.chart-error p {
  max-width: 310px;
  margin: 0;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.6;
}

.chart-legend {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 29px;
  padding: 3px 1px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 7px;
  color: #59665c;
  overflow-x: auto;
  scrollbar-width: none;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.legend-item i {
  font-style: normal;
  color: #4f5c52;
  font-size: 6px;
}

.legend-item b {
  font-weight: 400;
  color: #8c998d;
}

.legend-item.volume {
  margin-left: 3px;
}

.chart-footer {
  flex: 0 0 auto;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 6.5px;
  color: #4e5a50;
}

.chart-perf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.chart-perf .icon {
  width: 9px;
  height: 9px;
  color: #657264;
}

.token-sidebar {
  min-height: 0;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  scrollbar-width: thin;
}

.side-section {
  padding: 18px 18px 17px;
  border-bottom: 1px solid var(--line);
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: #637064;
}

.side-head .side-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 6px;
  letter-spacing: 0.04em;
}

.side-head .side-live::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px rgba(87, 227, 137, 0.6);
}

.side-main-stat {
  padding: 1px 0 15px;
}

.side-main-stat span {
  display: block;
  margin-bottom: 4px;
  font-size: 8px;
  color: #5d6a5f;
}

.side-main-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.side-main-stat em {
  font-style: normal;
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 7px;
  color: #5a675c;
}

.side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.side-stat span {
  display: block;
  margin-bottom: 2px;
  font-size: 7px;
  color: #59665c;
}

.side-stat b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: #bcc8b8;
}

.buy-pressure {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.pressure-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 7px;
  color: #6b776d;
}

.pressure-head b {
  font-weight: 400;
  color: var(--green);
}

.pressure-track {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 99, 119, 0.28);
}

.pressure-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fc575, var(--green));
  box-shadow: 0 0 8px rgba(87, 227, 137, 0.2);
  transition: width 0.5s var(--ease);
}

.pressure-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 6px;
  color: #526056;
}

.side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 27px;
  font-size: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.side-row:last-child {
  border-bottom: 0;
}

.side-row > span {
  color: #5f6c61;
  flex: 0 0 auto;
}

.side-row > b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 160px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 8px;
  color: #b1bdad;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-row > b.capitalize {
  text-transform: capitalize;
}

.side-row .chain-badge {
  font-size: 6.5px;
  padding: 3px 5px;
}

.copy-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #879387;
  font-family: var(--mono);
  font-size: 7.5px;
  transition: color 0.2s ease;
}

.copy-inline .icon {
  width: 9px;
  height: 9px;
}

.copy-inline:hover {
  color: var(--lime);
}

.side-trade {
  padding: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(var(--lime-rgb), 0.055), transparent 60%),
    rgba(var(--lime-rgb), 0.012);
}

.side-trade-kicker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.side-trade h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.side-trade p {
  margin: 5px 0 13px;
  color: #68756b;
  font-size: 9px;
  line-height: 1.65;
}

.trade-cta {
  width: 100%;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(var(--lime-rgb), 0.22);
  border-radius: 8px;
  background: rgba(var(--lime-rgb), 0.08);
  color: var(--lime);
  font-size: 10px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.trade-cta .icon {
  width: 13px;
  height: 13px;
}

.trade-cta:hover {
  background: rgba(var(--lime-rgb), 0.13);
  border-color: rgba(var(--lime-rgb), 0.38);
}

.side-trade small {
  display: block;
  margin-top: 8px;
  color: #4f5c52;
  font-size: 6.5px;
  line-height: 1.6;
  text-align: center;
}

/* Toast ----------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: min(420px, calc(100vw - 32px));
  padding: 9px 14px;
  border: 1px solid rgba(var(--lime-rgb), 0.18);
  border-radius: 8px;
  background: rgba(13, 18, 14, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  color: #c8d4c3;
  font-size: 10px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Animations ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  animation: revealUp 0.75s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.07s; }
.delay-2 { animation-delay: 0.13s; }
.delay-3 { animation-delay: 0.19s; }
.delay-4 { animation-delay: 0.25s; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes revealFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The search popover is fixed on mobile. A transform on any ancestor would
   turn that into a containing block, so this reveal only animates opacity. */
.search-shell.reveal {
  animation-name: revealFade;
}

@keyframes livePulse {
  0%, 100% { opacity: 0.65; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes tapeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes radarSweep {
  to { transform: rotate(360deg); }
}

@keyframes nodePing {
  0% { transform: scale(0.6); opacity: 0.6; }
  70%, 100% { transform: scale(1.3); opacity: 0; }
}

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes eyePulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes popoverIn {
  from { opacity: 0; transform: translateY(-7px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panelDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes flashUp {
  0% { color: var(--green); text-shadow: 0 0 10px rgba(87, 227, 137, 0.4); }
  100% { }
}

@keyframes flashDown {
  0% { color: var(--red); text-shadow: 0 0 10px rgba(255, 99, 119, 0.35); }
  100% { }
}

@keyframes chartBar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 0.85; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1280px) {
  .header-inner,
  .hero,
  .hot-section,
  .capabilities,
  .site-footer {
    padding-left: 26px;
    padding-right: 26px;
  }

  .tape-label {
    padding-left: 26px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 342px;
    gap: 44px;
  }

  .market-table-head,
  .market-row {
    grid-template-columns: 44px minmax(154px, 1.25fr) 94px 96px 92px 108px 92px 90px 18px;
    gap: 9px;
  }

  .hot-row-skeleton {
    grid-template-columns: 44px minmax(154px, 1.25fr) 94px 96px 92px 108px 92px 90px 18px;
    gap: 9px;
  }

  .cap-card {
    padding-left: 21px;
    padding-right: 21px;
  }

  .cap-foot {
    left: 21px;
  }
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 22px;
  }

  .provider-state {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(50px, 5.6vw, 66px);
  }

  .radar {
    width: 258px;
    height: 258px;
  }

  .ring-1 { width: 252px; height: 252px; }
  .ring-2 { width: 184px; height: 184px; }
  .ring-3 { width: 112px; height: 112px; }
  .radar-sweep { width: 252px; height: 252px; margin: -126px 0 0 -126px; }
  .node-1 { left: 61px; }
  .node-2 { right: 12px; }
  .node-3 { right: 40px; }
  .node-4 { left: 12px; }

  .market-table-head,
  .market-row {
    grid-template-columns: 38px minmax(150px, 1.2fr) 84px 92px 86px 96px 84px 82px 16px;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hot-row-skeleton {
    grid-template-columns: 38px minmax(150px, 1.2fr) 84px 92px 86px 96px 84px 82px 16px;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .traders-meter {
    width: 48px;
  }

  .heat-track {
    width: 45px;
  }

  .method-panel {
    grid-template-columns: 1fr 1.6fr;
  }

  .method-tags {
    display: none;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .pulse-card {
    display: none;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-title {
    font-size: clamp(56px, 8vw, 78px);
  }

  .hero-sub {
    max-width: 670px;
  }

  .search-shell {
    max-width: 790px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .section-tools {
    width: 100%;
    justify-content: space-between;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .cap-card {
    min-height: 195px;
  }

  .cap-card p {
    max-width: 600px;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 4px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
    --tape-h: 40px;
  }

  .header-inner {
    padding: 0 18px;
  }

  .brand {
    min-width: 0;
  }

  .header-search span,
  .header-search kbd {
    display: none;
  }

  .header-search {
    width: 38px;
    justify-content: center;
    padding: 0;
  }

  .tape-label {
    width: auto;
    flex: 0 0 auto;
    padding: 0 13px;
    gap: 6px;
  }

  .tape-label > span:last-child {
    display: none;
  }

  .tape-clock {
    width: 76px;
    flex-basis: 76px;
    font-size: 8px;
  }

  .tape-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .tape-viewport::-webkit-scrollbar {
    display: none;
  }

  .tape-track {
    animation: none;
    padding-right: 10px;
  }

  .tape-group[aria-hidden="true"] {
    display: none;
  }

  .tape-item {
    padding: 0 13px;
  }

  .hero {
    padding: 38px 18px 24px;
  }

  .hot-section,
  .capabilities,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hot-section {
    padding-top: 32px;
  }

  .hero-title {
    font-size: clamp(46px, 10.5vw, 64px);
  }

  .hero-sub {
    font-size: 13px;
    line-height: 1.8;
  }

  .search-form {
    min-height: 60px;
    padding: 5px;
  }

  .chain-select {
    flex-basis: 128px;
    height: 48px;
  }

  .chain-trigger {
    gap: 7px;
    padding: 0 8px 0 10px;
    font-size: 12px;
  }

  .chain-trigger .chain-chevron {
    width: 11px;
    height: 11px;
  }

  .chain-menu {
    position: fixed;
    top: calc(var(--header-h) + var(--tape-h) + 8px);
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--header-h) - var(--tape-h) - 18px);
    border-radius: 14px;
  }

  .chain-menu-list {
    max-height: calc(100vh - var(--header-h) - var(--tape-h) - 208px);
  }

  .chain-option {
    min-height: 49px;
  }

  .search-field {
    padding: 0 8px 0 12px;
  }

  .search-field input {
    height: 42px;
    font-size: 13px;
  }

  .inline-kbd {
    display: none;
  }

  .search-go {
    height: 48px;
    flex-basis: 48px;
    border-radius: 10px;
  }

  .search-go span {
    display: none;
  }

  .hero-metrics {
    gap: 20px;
    margin-top: 26px;
  }

  .metric-value {
    font-size: 20px;
  }

  .metric-note {
    display: none;
  }

  .section-title-block h2 {
    font-size: 28px;
  }

  .section-tools {
    align-items: center;
    flex-wrap: wrap;
  }

  .sort-tabs {
    overflow-x: auto;
    max-width: 100%;
  }

  .sort-tab {
    padding: 0 9px;
    font-size: 9.5px;
  }

  .refresh-state {
    min-width: auto;
  }

  .hot-toolbar {
    align-items: flex-start;
    gap: 8px;
  }

  .method-link {
    padding-right: 0;
    font-size: 8px;
  }

  .method-link .icon {
    width: 12px;
    height: 12px;
  }

  .method-panel {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px;
  }

  .method-panel p {
    font-size: 9.5px;
  }

  .market-table-head {
    display: none;
  }

  .market-table {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .market-table::before {
    display: none;
  }

  .market-table-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .market-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank token price"
      "rank chain change"
      "rank volume traders"
      "rank heat heat";
    grid-template-rows: auto auto auto auto;
    min-height: 0;
    padding: 13px 13px 12px;
    gap: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 14, 11, 0.7);
  }

  .market-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .market-row::before {
    top: 13px;
    bottom: 13px;
    border-radius: 1px;
  }

  .col-rank {
    grid-area: rank;
    align-self: stretch;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .rank-no {
    font-size: 10px;
  }

  .col-token {
    grid-area: token;
  }

  .token-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .token-symbol {
    font-size: 13px;
  }

  .token-name {
    font-size: 9px;
  }

  .col-chain {
    grid-area: chain;
    justify-self: start;
  }

  .chain-badge {
    font-size: 6.5px;
    padding: 3px 5px;
  }

  .col-price {
    grid-area: price;
    font-size: 12px;
    align-self: start;
    padding-top: 2px;
  }

  .col-change {
    grid-area: change;
    align-self: start;
    margin-top: -3px;
  }

  .change-pill {
    min-width: 56px;
    font-size: 8.5px;
    padding: 3px 5px;
  }

  .col-volume {
    grid-area: volume;
    text-align: left;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    font-size: 9.5px;
  }

  .col-volume::before {
    content: '成交额';
    display: block;
    margin-bottom: 3px;
    color: #59655b;
    font-family: var(--mono);
    font-size: 6px;
    letter-spacing: 0.04em;
  }

  .col-traders {
    grid-area: traders;
    align-items: flex-start;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
  }

  .col-traders::before {
    content: '持币地址';
    display: block;
    margin-bottom: 3px;
    color: #59655b;
    font-family: var(--mono);
    font-size: 6px;
    letter-spacing: 0.04em;
  }

  .traders-value {
    font-size: 9.5px;
  }

  .traders-meter {
    display: none;
  }

  .col-heat {
    grid-area: heat;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
  }

  .col-heat::before {
    content: 'FLAP 热度';
    color: #59655b;
    font-family: var(--mono);
    font-size: 6px;
    letter-spacing: 0.04em;
  }

  .heat-score {
    font-size: 11px;
  }

  .heat-track {
    width: 80px;
    height: 2px;
  }

  .col-chevron {
    display: none;
  }

  .hot-row-skeleton {
    display: none;
  }

  .market-table-body:has(.hot-row-skeleton) {
    gap: 0;
  }

  .market-table-body:has(.hot-row-skeleton)::after {
    content: '正在载入链上行情…';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 8px;
  }

  .hot-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-top: 13px;
  }

  .hot-footer-actions {
    width: 100%;
    justify-content: space-between;
  }

  .capabilities {
    padding-bottom: 58px;
  }

  .capability-grid {
    border-left: 0;
  }

  .cap-card {
    min-height: 185px;
    border-left: 1px solid var(--line);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 25px;
    padding-bottom: 30px;
  }

  .footer-disclaimer {
    max-width: 100%;
  }

  .footer-links {
    grid-column: auto;
  }

  .search-popover {
    position: fixed;
    top: calc(var(--header-h) + var(--tape-h) + 8px);
    left: 12px;
    right: 12px;
    max-height: calc(100vh - var(--header-h) - var(--tape-h) - 20px);
  }

  .search-popover-body {
    max-height: calc(100vh - var(--header-h) - var(--tape-h) - 148px);
  }

  .search-result {
    grid-template-columns: 32px minmax(0, 1fr) 62px 54px 18px;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .search-result-volume {
    display: none;
  }

  .search-popover-foot {
    gap: 11px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .popover-foot-note {
    display: none !important;
  }

  .token-modal {
    padding: 0;
  }

  .token-panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .token-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .token-header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .token-identity {
    flex: 1;
    min-width: 0;
  }

  .token-fullname {
    max-width: 130px;
  }

  .token-title-line h2 {
    font-size: 21px;
  }

  .token-price-block {
    order: 3;
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
    width: calc(100% - 48px);
    margin-left: 57px;
    padding: 0;
  }

  .modal-price {
    font-size: 21px;
  }

  .token-header-actions {
    order: 2;
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    gap: 7px;
  }

  .trade-button {
    height: 34px;
    padding: 0 11px;
    font-size: 10px;
  }

  .trade-button span {
    display: none;
  }

  .trade-button .icon {
    width: 15px;
    height: 15px;
  }

  .modal-close {
    width: 34px;
    height: 34px;
  }

  .token-main {
    display: block;
    overflow-y: auto;
  }

  .chart-pane {
    padding: 12px 14px 10px;
    min-height: 470px;
  }

  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .chart-toolbar-left {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .chart-kicker {
    display: none;
  }

  .tf-group {
    width: 100%;
    justify-content: space-between;
  }

  .tf-group button {
    flex: 1;
    min-width: 0;
  }

  .chart-live-state {
    align-self: flex-end;
    margin-top: -31px;
  }

  .chart-local {
    display: none;
  }

  .chart-stage {
    min-height: 312px;
    height: 312px;
  }

  .chart-watermark {
    font-size: 19px;
  }

  .chart-legend {
    gap: 10px;
  }

  .legend-item.volume {
    display: none;
  }

  .chart-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 5px;
  }

  .token-sidebar {
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .side-section {
    padding: 15px 16px;
  }

  .side-trade {
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .side-main-stat strong {
    font-size: 22px;
  }

  .search-open .site-header {
    z-index: 130;
  }

  .search-open .search-popover {
    z-index: 140;
  }
}

@media (max-width: 560px) {
  .brand-tag {
    display: none;
  }

  .brand-word {
    font-size: 19px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .tape-item {
    gap: 6px;
    padding: 0 12px;
  }

  .tape-token em {
    display: none;
  }

  .tape-clock {
    width: 64px;
    flex-basis: 64px;
    font-size: 7.5px;
  }

  .hero {
    padding-top: 30px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.09em;
  }

  .eyebrow-rule,
  .eyebrow-muted {
    display: none;
  }

  .hero-title {
    margin-top: 18px;
    font-size: clamp(42px, 12.6vw, 56px);
    letter-spacing: -0.06em;
  }

  .hero-sub {
    margin-top: 17px;
    font-size: 12.5px;
  }

  .search-shell {
    margin-top: 23px;
  }

  .chain-select {
    flex-basis: 116px;
  }

  .chain-trigger {
    gap: 6px;
    padding: 0 6px 0 8px;
    font-size: 12.5px;
  }

  .chain-trigger .chain-logo.trg {
    width: 18px;
    height: 18px;
  }

  .chain-trigger .chain-chevron {
    width: 10px;
    height: 10px;
  }

  .search-field {
    gap: 8px;
    padding-left: 9px;
  }

  .search-icon {
    width: 15px;
    height: 15px;
  }

  .search-field input {
    font-size: 12px;
  }

  .search-field input::placeholder {
    color: #606d63;
  }

  .search-go {
    flex-basis: 43px;
    height: 46px;
  }

  .search-form {
    min-height: 56px;
  }

  .quick-row {
    align-items: flex-start;
    gap: 8px;
  }

  .quick-label {
    padding-top: 6px;
  }

  .quick-tokens {
    gap: 4px;
  }

  .quick-token {
    height: 22px;
    padding: 0 7px;
  }

  .hero-metrics {
    gap: 0;
    justify-content: space-between;
    padding-top: 17px;
  }

  .metric-value {
    font-size: 18px;
  }

  .metric-label {
    font-size: 6.5px;
  }

  .hot-section {
    padding-top: 25px;
    padding-bottom: 46px;
  }

  .section-index {
    margin-bottom: 8px;
  }

  .section-title-block h2 {
    font-size: 25px;
  }

  .section-title-block p {
    font-size: 10.5px;
    line-height: 1.7;
  }

  .section-tools {
    gap: 8px;
  }

  .sort-tab {
    padding: 0 8px;
    font-size: 8.5px;
  }

  .hot-toolbar {
    margin-top: 2px;
  }

  .chain-pill {
    height: 26px;
    font-size: 7.5px;
    padding: 0 8px;
  }

  .market-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding: 11px 11px 10px;
    gap: 6px 8px;
  }

  .token-avatar {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .token-symbol {
    font-size: 12px;
  }

  .token-name {
    max-width: 130px;
    font-size: 8px;
  }

  .col-price {
    font-size: 11px;
  }

  .col-chain {
    margin-top: 1px;
  }

  .col-volume {
    font-size: 9px;
  }

  .col-traders {
    align-items: flex-end;
  }

  .col-traders::before {
    align-self: flex-start;
  }

  .col-heat::before {
    font-size: 5.5px;
  }

  .hot-footer {
    font-size: 6.5px;
  }

  .data-by {
    display: none;
  }

  .capability-intro h2 {
    font-size: 28px;
  }

  .cap-card {
    min-height: 198px;
    padding: 20px 18px;
  }

  .cap-card::before {
    left: 18px;
    right: 18px;
  }

  .cap-icon {
    margin-bottom: 19px;
  }

  .cap-foot {
    left: 18px;
    bottom: 16px;
  }

  .site-footer {
    padding-bottom: 26px;
  }

  .footer-links {
    font-size: 6.5px;
  }

  .search-popover {
    left: 8px;
    right: 8px;
  }

  .search-popover-head {
    padding: 12px 14px;
  }

  .search-source {
    display: none;
  }

  .search-result {
    grid-template-columns: 30px minmax(0, 1fr) 58px 50px 16px;
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .search-result-price {
    font-size: 9px;
  }

  .search-result-change {
    font-size: 8px;
  }

  .search-popover-foot {
    gap: 9px;
    font-size: 6px;
  }

  .token-subline {
    gap: 5px;
    flex-wrap: wrap;
  }

  .token-external {
    display: none;
  }

  .token-price-block {
    margin-left: 42px;
    width: calc(100% - 42px);
  }

  .token-head-text {
    max-width: calc(100vw - 150px);
  }

  .token-fullname {
    display: none;
  }

  .token-title-line h2 {
    font-size: 20px;
  }

  .token-kicker {
    font-size: 5.8px;
  }

  .token-subline .chain-badge {
    font-size: 6px;
  }

  .token-header {
    padding-left: 13px;
    padding-right: 13px;
  }

  .chart-pane {
    padding-left: 10px;
    padding-right: 10px;
    min-height: 448px;
  }

  .chart-stage {
    min-height: 290px;
    height: 290px;
  }

  .chart-legend {
    gap: 8px;
    font-size: 6px;
  }

  .legend-item b {
    font-size: 6px;
  }

  .chart-footer {
    font-size: 5.8px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    padding: 0 12px;
  }

  .hero,
  .hot-section,
  .capabilities,
  .site-footer {
    padding-left: 13px;
    padding-right: 13px;
  }

  .hero-title {
    font-size: 40px;
  }

  .chain-select {
    flex-basis: 108px;
  }

  .search-go {
    flex-basis: 40px;
  }

  .metric-value {
    font-size: 16px;
  }

  .hot-footer-actions {
    flex-wrap: wrap;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
  }

  .tape-track {
    animation: none;
  }
}
