:root {
  --bg-deep: #070708;
  --bg-warm: #12100c;
  --ink: #f5f0e6;
  --ink-soft: #c9bfad;
  --muted: #8a8275;
  --gold: #e8c547;
  --gold-deep: #b8922a;
  --gold-glow: rgba(232, 197, 71, 0.35);
  --card: rgba(22, 20, 16, 0.92);
  --card-stroke: rgba(232, 197, 71, 0.22);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 197, 71, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(184, 146, 42, 0.08), transparent 45%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-warm) 45%, #0a0908 100%);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow: hidden;
}

.page {
  position: relative;
  z-index: 1;
  height: 100dvh;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0.85rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.85rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
  line-height: 1;
  text-shadow: 0 0 28px var(--gold-glow);
}

.brand-sub {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 0.35rem;
  vertical-align: super;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  flex-wrap: wrap;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(232, 197, 71, 0.06);
  border: 1px solid rgba(232, 197, 71, 0.15);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.top-nav a:hover {
  color: var(--gold);
  background: rgba(232, 197, 71, 0.12);
  border-color: rgba(232, 197, 71, 0.35);
}

.top-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.top-nav-sep {
  color: var(--muted);
  opacity: 0.7;
  user-select: none;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 0;
}

.hero-coin-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0 0.5rem;
  filter: drop-shadow(0 0 32px var(--gold-glow));
}

.hero-coin {
  width: clamp(150px, 22vh, 260px);
  height: auto;
  margin: 0;
  display: block;
}

.headline {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
  max-width: 28rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.headline em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.flavor {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--ink-soft);
  margin: -0.15rem 0 0;
  max-width: 30rem;
  font-weight: 500;
  line-height: 1.45;
  background: rgba(232, 197, 71, 0.06);
  padding: 0.55rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(232, 197, 71, 0.12);
}

.flavor em {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.ca-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--card);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--card-stroke);
  border-radius: 0.45rem;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: var(--shadow);
}

.ca-strip-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.ca-strip:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 197, 71, 0.25);
}

.ca-strip:active {
  transform: translateY(1px);
}

.ca-strip-addr {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.copy-toast {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  min-height: 1rem;
  margin-top: 0.05rem;
}

.data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.85rem;
  min-height: 0;
}

.card {
  background: var(--card);
  border-radius: 0.85rem;
  border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-title-sub {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-style: italic;
  opacity: 0.9;
}

.stats {
  justify-content: flex-start;
  align-items: stretch;
  text-align: center;
  gap: 0;
  padding: 0;
}

.stats-section {
  width: 100%;
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.stats-section + .stats-section {
  border-top: 1px dashed rgba(232, 197, 71, 0.2);
}

.stats-section-title {
  font-size: 0.68rem;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.22em;
  font-weight: 700;
}

.stats-big {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  margin: 0;
  font-variant-numeric: tabular-nums;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.stats-big--airdrop {
  background-image: linear-gradient(135deg, #f0dc7a, var(--gold-deep));
}

.stats-big--spent {
  background-image: linear-gradient(135deg, #c4a86a, #8a6f3a);
}

.stats-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

.stats-sub-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.15rem 0 0;
  letter-spacing: 0.01em;
}

.stats-sub-meta a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.stats-sub-meta a:hover {
  text-decoration: underline;
}

.stats-timer {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(232, 197, 71, 0.08);
  border: 1px solid var(--card-stroke);
  border-radius: 999px;
}

.hero-timer {
  margin-top: 0.2rem;
  padding: 0.42rem 0.9rem;
}

.timer-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.timer-value {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.top-table-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(232, 197, 71, 0.1);
}

.top-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.top-table thead th {
  position: sticky;
  top: 0;
  background: rgba(18, 16, 12, 0.98);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.6rem;
  border-bottom: 1px solid rgba(232, 197, 71, 0.18);
}

.top-table tbody td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(232, 197, 71, 0.06);
  vertical-align: middle;
  color: var(--ink-soft);
}

.top-table tbody tr:last-child td {
  border-bottom: none;
}

.top-table tbody tr:hover td {
  background: rgba(232, 197, 71, 0.05);
}

.top-table .rank {
  width: 2.2rem;
  color: var(--gold);
  font-weight: 700;
}

.top-table .addr {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
}

.top-table .addr a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(232, 197, 71, 0.35);
}

.top-table .addr a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.top-table .amt,
.top-table th.amt,
.top-table .cnt,
.top-table th.cnt {
  text-align: right;
}

.top-table .amt {
  font-weight: 600;
  color: var(--gold);
}

.top-table .cnt {
  width: 4rem;
  color: var(--muted);
}

.top-table tr.empty td {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 1.5rem 0.5rem;
}

footer {
  text-align: center;
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 42rem;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.45rem 0.95rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 197, 71, 0.08);
}

footer strong {
  color: var(--ink-soft);
  font-weight: 700;
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto auto auto;
  }

  .topbar {
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .data {
    grid-template-columns: 1fr;
  }

  .top-table-wrap {
    max-height: 60vh;
  }
}
