:root {
  color-scheme: dark;
  --bg: #06110f;
  --panel: rgba(10, 31, 27, 0.76);
  --panel-strong: rgba(14, 43, 37, 0.9);
  --text: #eefcf2;
  --muted: #a7c7bd;
  --quiet: #759a8d;
  --line: rgba(174, 222, 205, 0.18);
  --accent: #a6ff4d;
  --accent-2: #20d6a1;
  --flash: #e7ff6b;
  --flash-2: #3dffc4;
  --flash-hot: #fff7a8;
  --danger: #ff776d;
  --warning: #ffcf5a;
  --shadow: 0 18px 65px rgba(0, 0, 0, 0.36);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: "Aptos Display", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(166, 255, 77, 0.22), transparent 24rem),
    radial-gradient(circle at 96% 10%, rgba(32, 214, 161, 0.18), transparent 24rem),
    linear-gradient(145deg, #04110f 0%, #0b211d 48%, #06110f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(166, 255, 77, 0.35);
  outline-offset: 3px;
}

.app-shell {
  width: min(1180px, 100%);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding:
    calc(10px + var(--safe-top))
    calc(12px + var(--safe-right))
    calc(10px + var(--safe-bottom))
    calc(12px + var(--safe-left));
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pool-banner,
.connection-pill,
.summary-card,
.feed-section,
.feed-card,
.empty-state {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.pool-banner {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  padding: 10px 96px 10px 13px;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(166, 255, 77, 0.13), transparent 44%),
    var(--panel);
  font-size: clamp(0.86rem, 2vw, 1.03rem);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-banner__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-version {
  position: absolute;
  top: 6px;
  right: 9px;
  border: 1px solid rgba(174, 222, 205, 0.16);
  border-radius: 999px;
  padding: 3px 6px;
  color: rgba(238, 252, 242, 0.58);
  background: rgba(14, 43, 37, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

.pool-banner:hover {
  color: var(--accent);
}

.connection-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(8, 24, 21, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(255, 207, 90, 0.1);
}

.status-dot.is-online {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(166, 255, 77, 0.1), 0 0 18px rgba(166, 255, 77, 0.5);
}

.status-dot.is-offline {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 119, 109, 0.11);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.summary-card {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 3px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 9px 10px;
  background: var(--panel);
}

.summary-card > * {
  position: relative;
  z-index: 1;
}

.summary-card::after,
.feed-card::after {
  position: absolute;
  inset: -2px;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 247, 168, 0.72), transparent 28%),
    linear-gradient(115deg, rgba(231, 255, 107, 0.36), rgba(61, 255, 196, 0.22) 54%, transparent 78%);
}

.summary-card.is-flashing {
  border-color: rgba(231, 255, 107, 0.82);
  animation: card-flash 1400ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.summary-card.is-flashing::after {
  animation: light-sweep 1400ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.summary-card span,
.section-kicker,
dt {
  color: var(--quiet);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1rem, 3.4vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card--latest strong {
  font-size: clamp(1.08rem, 3.7vw, 1.75rem);
  letter-spacing: -0.05em;
}

.latest-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.latest-line strong {
  flex: 0 1 auto;
  min-width: 0;
}

.ticker-pill {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  max-width: 7.5rem;
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 8px;
  color: #071714;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(166, 255, 77, 0.18);
  font-size: clamp(0.64rem, 1.6vw, 0.78rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.summary-card small {
  overflow: hidden;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-card {
  min-width: 0;
}

.time-pair {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.time-pair strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  font-size: clamp(0.9rem, 2.45vw, 1.22rem);
  line-height: 1.05;
  text-overflow: clip;
}

.time-local {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-utc {
  display: block;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  color: var(--quiet);
  font-size: 0.58em;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-pair strong:first-child::before {
  display: block;
  margin-bottom: 2px;
  content: "Last block";
  color: var(--quiet);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-pair strong:last-child::before {
  display: block;
  margin-bottom: 2px;
  content: "Now";
  color: var(--quiet);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.epoch-panel {
  min-width: 0;
  display: grid;
  gap: 5px;
  margin-top: 7px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.epoch-panel__head,
.epoch-panel__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.epoch-panel__head strong {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(0.82rem, 2.1vw, 1.02rem);
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epoch-panel__head small,
.epoch-panel__meta small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epoch-panel__head small {
  flex: 0 0 auto;
  color: var(--accent);
}

.epoch-bar {
  position: relative;
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(166, 255, 77, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.epoch-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(166, 255, 77, 0.22);
  transition: width 500ms ease;
}

.feed-section {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%),
    rgba(7, 22, 19, 0.78);
}

.feed-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 2px 0 0;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.seo-intro {
  max-width: 48rem;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.35;
}

.block-feed {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 3px 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  list-style: none;
  scrollbar-color: rgba(166, 255, 77, 0.48) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.block-feed::-webkit-scrollbar {
  width: 9px;
}

.block-feed::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.block-feed::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 22, 19, 0.9);
  border-radius: 999px;
  background: linear-gradient(var(--accent), var(--accent-2));
}

.feed-card,
.empty-state {
  flex: 0 0 auto;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.056);
}

.feed-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(112px, max-content) minmax(0, 1fr);
  grid-template-areas:
    "height top"
    "stats stats"
    "details details";
  gap: 7px 10px;
  align-items: center;
  padding: 8px 10px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}

.feed-card > * {
  position: relative;
  z-index: 1;
}

.feed-card.is-new {
  animation: row-arrive 420ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

.feed-card.has-ticker-pulse {
  border-color: rgba(231, 255, 107, 0.8);
  animation: row-breathe 2600ms ease-in-out 1;
}

.feed-card.has-ticker-pulse::after {
  animation: feed-glow 2600ms ease-in-out 1;
}

.feed-card__height {
  grid-area: height;
  overflow: visible;
  color: var(--text);
  font-size: clamp(0.98rem, 2.6vw, 1.28rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feed-card__top {
  grid-area: top;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.feed-card__labels {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-ticker {
  max-width: 5.8rem;
  padding: 3px 7px;
  font-size: 0.58rem;
}

time {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  max-width: 8.4rem;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.12;
  text-align: right;
}

time .time-local {
  color: var(--text);
  font-size: 0.68rem;
}

time .time-utc {
  font-size: 0.55rem;
}

.feed-card__stats {
  grid-area: stats;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.feed-card__stats > span,
.feed-card__stats > button {
  position: relative;
  isolation: isolate;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(166, 255, 77, 0.18);
  border-radius: 999px;
  padding: 3px 7px;
  color: #dffbea;
  background: rgba(166, 255, 77, 0.08);
  box-shadow: none;
  font-family: inherit;
  font-size: clamp(0.54rem, 1.35vw, 0.64rem);
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card__stats > button:disabled {
  cursor: default;
  opacity: 0.72;
}

.feed-card__stats .has-nft-details,
.feed-card__stats .has-detail-popover {
  position: relative;
  overflow: visible;
  border-color: rgba(61, 255, 196, 0.5);
  color: #06110f;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.75), transparent 44%),
    linear-gradient(135deg, #eaffd7, #52ffd0 58%, #a6ff4d);
  box-shadow: 0 0 18px rgba(61, 255, 196, 0.16);
  cursor: pointer;
}

.feed-card.has-ticker-pulse .feed-ticker:not([hidden]):not(:disabled),
.feed-card.has-ticker-pulse .feed-card__stats > button.has-detail-popover,
.feed-card.has-ticker-pulse .feed-card__stats > button.has-nft-details {
  overflow: hidden;
  animation: pill-red-pulse 2300ms cubic-bezier(0.16, 0.76, 0.22, 1) 2600ms 1 both;
}

.feed-card.has-ticker-pulse .feed-ticker:not([hidden]):not(:disabled)::after,
.feed-card.has-ticker-pulse .feed-card__stats > button.has-detail-popover::after,
.feed-card.has-ticker-pulse .feed-card__stats > button.has-nft-details::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(175, 12, 24, 0.92) 28%, rgba(255, 250, 230, 0.96) 46%, rgba(255, 54, 66, 0.9) 58%, transparent 78%),
    radial-gradient(circle at 28% 20%, rgba(255, 32, 48, 0.72), transparent 34%);
  background-position: -180% 0, 0 0;
  background-size: 260% 100%, 100% 100%;
  clip-path: inset(0 round 999px);
  mix-blend-mode: screen;
  animation: pill-red-sweep 2600ms cubic-bezier(0.16, 0.76, 0.22, 1) 2600ms 1 both;
}
.feed-card.is-nft-open,
.feed-card.is-pool-open,
.feed-card.is-detail-open {
  z-index: 8;
  overflow: visible;
}

.feed-card.is-nft-open .nft-popover,
.feed-card.is-pool-open .pool-popover,
.feed-card.is-detail-open .detail-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nft-popover,
.pool-popover,
.detail-popover {
  position: absolute;
  left: 10px;
  top: calc(100% - 6px);
  z-index: 12;
  width: min(390px, calc(100vw - 28px));
  max-height: min(310px, 58vh);
  overflow: auto;
  border: 1px solid rgba(205, 255, 190, 0.28);
  border-radius: 20px;
  padding: 13px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(166, 255, 77, 0.18), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(61, 255, 196, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(16, 49, 42, 0.98), rgba(5, 15, 14, 0.99));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.045) inset,
    0 0 34px rgba(61, 255, 196, 0.18);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translateY(-6px) scale(0.985);
  transition: opacity 170ms ease, transform 170ms ease;
}

.nft-popover[hidden],
.pool-popover[hidden],
.detail-popover[hidden] {
  display: block;
}

.nft-popover::before,
.pool-popover::before,
.detail-popover::before {
  position: absolute;
  left: 22px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: rgba(16, 49, 42, 0.98);
  border-left: 1px solid rgba(205, 255, 190, 0.24);
  border-top: 1px solid rgba(205, 255, 190, 0.24);
  content: "";
  transform: rotate(45deg);
}

.nft-popover__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-bottom: 7px;
  border: 1px solid rgba(166, 255, 77, 0.22);
  border-radius: 999px;
  padding: 3px 7px;
  color: #071714;
  background: linear-gradient(135deg, rgba(234, 255, 215, 0.92), rgba(82, 255, 208, 0.82));
  font-size: 0.55rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.nft-popover__heading {
  margin: 0 0 5px;
  color: #f4fff6;
  font-size: clamp(0.92rem, 2.6vw, 1.08rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
}

.nft-popover__help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.35;
}

.nft-popover__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nft-item;
}

.nft-popover__item {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.045);
  counter-increment: nft-item;
}

.nft-popover__item strong {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.nft-popover__item strong::before {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #071714;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(61, 255, 196, 0.2);
  content: counter(nft-item);
  font-size: 0.62rem;
  font-weight: 950;
}

.nft-popover__meta {
  display: grid;
  gap: 4px;
  padding-left: 28px;
}

.nft-popover__line {
  display: grid;
  grid-template-columns: minmax(72px, max-content) minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.25;
}

.nft-popover__line b {
  color: #dffbea;
  font-weight: 950;
  white-space: nowrap;
}

.nft-popover__line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nft-popover__value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nft-popover__value.is-copyable {
  position: relative;
  color: #fff7e1;
  cursor: copy;
}

.nft-popover__value.is-copyable:hover,
.nft-popover__value.is-copyable:focus-visible {
  color: var(--flash-hot);
  outline: none;
}

.nft-popover__value.is-copyable.is-copied::after {
  margin-left: 6px;
  color: var(--flash-hot);
  content: "copied";
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(255, 54, 66, 0.72);
  text-transform: uppercase;
  animation: copiedTextPulse 1.15s ease-out both;
}

@keyframes copiedTextPulse {
  0% {
    opacity: 0;
    transform: scale(0.84);
    text-shadow: 0 0 0 rgba(255, 54, 66, 0);
  }

  36% {
    opacity: 1;
    transform: scale(1.12);
    text-shadow: 0 0 16px rgba(255, 54, 66, 0.92);
  }

  100% {
    opacity: 0;
    transform: scale(1);
    text-shadow: 0 0 2px rgba(255, 54, 66, 0);
  }
}

.cert-ticker-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 240, 220, 0.32);
  border-radius: 999px;
  padding: 2px 6px;
  color: #fff7e1;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(135deg, rgba(175, 12, 24, 0.95), rgba(255, 54, 66, 0.72));
  box-shadow: 0 0 14px rgba(255, 54, 66, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 0.52rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.nft-popover__more {
  margin-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  color: var(--quiet);
  font-size: 0.62rem;
  font-weight: 850;
}

.feed-card__stats .battle-pill {
  flex: 1 1 auto;
  border-color: rgba(255, 207, 90, 0.48);
  color: #071714;
  background: linear-gradient(135deg, var(--warning), var(--flash-hot));
}

.feed-card__stats .battle-pill::before {
  content: "BATTLE ";
  font-weight: 950;
}

.feed-card dl {
  grid-area: details;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
}

.feed-card dl > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(64px, max-content) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

dt {
  margin: 0;
  font-size: 0.54rem;
}

dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

[data-field="slot"] {
  overflow: visible;
  white-space: nowrap;
}

[data-field="producer"] {
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
}

.hash {
  overflow: hidden;
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.56rem, 1.45vw, 0.68rem);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
}

@keyframes card-flash {
  0% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: var(--shadow);
  }

  18% {
    transform: scale(1.018);
    filter: brightness(1.55) saturate(1.35);
    box-shadow:
      0 0 0 1px rgba(231, 255, 107, 0.65),
      0 0 34px rgba(231, 255, 107, 0.34),
      0 0 64px rgba(61, 255, 196, 0.24);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: var(--shadow);
  }
}

@keyframes light-sweep {
  0% {
    opacity: 0;
    transform: translateX(-35%) scale(0.95);
  }

  22% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(34%) scale(1.04);
  }
}
@keyframes pill-red-sweep {
  0% {
    opacity: 0;
    background-position: -180% 0, 0 0;
  }

  34% {
    opacity: 0.96;
  }

  74%,
  100% {
    opacity: 0;
    background-position: 180% 0, 0 0;
  }
}

@keyframes pill-red-pulse {
  0% {
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 rgba(255, 88, 88, 0);
  }

  42% {
    filter: brightness(1.28) saturate(1.45) contrast(1.12);
    box-shadow: 0 0 0 1px rgba(255, 240, 220, 0.42), 0 0 24px rgba(255, 36, 52, 0.5), 0 0 42px rgba(170, 12, 24, 0.28);
  }

  100% {
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 rgba(255, 88, 88, 0);
  }
}

@keyframes row-arrive {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
    filter: brightness(1.75) saturate(1.35);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes row-breathe {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
  }

  50% {
    filter: brightness(1.28) saturate(1.22);
    box-shadow:
      0 0 0 1px rgba(231, 255, 107, 0.62),
      0 18px 50px rgba(0, 0, 0, 0.26),
      0 0 34px rgba(231, 255, 107, 0.3),
      0 0 58px rgba(61, 255, 196, 0.2);
  }
}

@keyframes feed-glow {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.03);
  }
}

@media (max-width: 640px) {
  .app-shell {
    gap: 8px;
    padding:
      calc(8px + var(--safe-top))
      calc(8px + var(--safe-right))
      calc(8px + var(--safe-bottom))
      calc(8px + var(--safe-left));
  }

  .top-bar {
    gap: 8px;
  }

  .pool-banner {
    padding: 18px 76px 8px 10px;
    font-size: 0.8rem;
  }

  .site-version {
    top: 5px;
    right: 7px;
    font-size: 0.5rem;
  }

  .connection-pill {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .summary-card {
    min-height: 54px;
    border-radius: 14px;
    padding: 7px;
  }

  .summary-card span,
  .section-kicker,
  dt {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .summary-card strong,
  .summary-card--latest strong {
    font-size: clamp(0.86rem, 4.8vw, 1.18rem);
    letter-spacing: -0.05em;
  }

  .ticker-pill {
    max-width: 5.5rem;
    padding: 3px 6px;
    font-size: clamp(0.56rem, 2.8vw, 0.66rem);
  }

  .summary-card small {
    font-size: 0.66rem;
  }

  .time-pair {
    gap: 6px;
  }

  .time-pair strong {
    font-size: clamp(0.74rem, 3.7vw, 0.94rem);
  }

  .time-utc {
    font-size: 0.6em;
  }

  time {
    max-width: 7.4rem;
  }

  .time-pair strong::before {
    display: block;
    margin-bottom: 2px;
    font-size: 0.48rem;
  }

  .feed-section {
    border-radius: 17px;
    padding: 9px;
  }

  .feed-toolbar {
    padding-bottom: 8px;
  }

  h1 {
    font-size: 1.14rem;
  }

  .block-feed {
    gap: 7px;
    padding-top: 8px;
  }

  .feed-card {
    grid-template-columns: minmax(98px, max-content) minmax(0, 1fr);
    gap: 6px;
    border-radius: 14px;
    padding: 7px;
  }

  .feed-card__height {
    font-size: clamp(0.86rem, 4vw, 1.04rem);
  }

  .feed-card__top {
    margin-bottom: 4px;
  }

  .feed-card__labels {
    gap: 5px;
  }

  .feed-ticker {
    max-width: 4.6rem;
    padding: 2px 6px;
    font-size: 0.52rem;
  }

  .feed-card__stats {
    gap: 4px;
  }

  .feed-card__stats > span,
  .feed-card__stats > button {
    padding: 2px 5px;
    font-size: clamp(0.48rem, 2vw, 0.56rem);
  }

  .feed-card dl {
    gap: 4px;
  }

  .feed-card dl > div {
    grid-template-columns: minmax(52px, max-content) minmax(0, 1fr);
    gap: 6px;
  }

  dd {
    font-size: 0.68rem;
  }

  .hash {
    font-size: clamp(0.5rem, 2.2vw, 0.6rem);
  }
}

@media (max-width: 390px) {
  .pool-banner {
    padding-right: 70px;
    font-size: 0.68rem;
  }

  .site-version {
    padding: 2px 5px;
    font-size: 0.46rem;
  }

  .connection-pill span:last-child {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-card {
    grid-template-columns: minmax(92px, max-content) minmax(0, 1fr);
  }
}

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

.feed-ticker {
  min-height: 0;
  border: 0;
  cursor: pointer;
}

.feed-ticker:disabled {
  cursor: default;
}

.feed-ticker.is-pool-open {
  filter: brightness(1.12) saturate(1.12);
  box-shadow: 0 0 22px rgba(61, 255, 196, 0.3);
}

.pool-popover__item strong::before {
  display: none;
  content: none;
}

.pool-popover__item .nft-popover__meta {
  padding-left: 0;
}

.detail-pill.is-detail-open,
.nft-pill.is-nft-open {
  filter: brightness(1.12) saturate(1.12);
  box-shadow: 0 0 22px rgba(61, 255, 196, 0.3);
}
