:root {
  --ink: #fff9f2;
  --muted: rgba(255, 249, 242, 0.72);
  --panel: rgba(11, 10, 18, 0.72);
  --panel-strong: rgba(11, 10, 18, 0.88);
  --line: rgba(255, 255, 255, 0.18);
  --pink: #ff00ce;
  --blue: #0619ff;
  --green: #00f126;
  --yellow: #fff800;
  --red: #ff0800;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background: #070711;
  line-height: 1.45;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("bg.png") center / cover no-repeat;
  z-index: -2;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 16rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  z-index: -1;
}

.page {
  width: min(1180px, calc(100% - 32px));
  height: 100dvh;
  margin: 0 auto;
  padding: 10px 0 12px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 999px;
}

.top-nav a:hover {
  color: #070711;
  background: var(--yellow);
}

.top-nav-sep {
  color: var(--muted);
}

.hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0;
}

.hero-logo {
  width: clamp(230px, 36vw, 430px);
  height: auto;
  margin: 0 0 18px;
  display: block;
  filter:
    drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 30px rgba(255, 255, 255, 0.18));
}

.eyebrow {
  margin: 0;
  color: #050505;
  background: var(--yellow);
  border: 3px solid #050505;
  border-radius: 999px;
  box-shadow: 5px 5px 0 #050505;
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.tagline {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.tagline em {
  color: var(--yellow);
  font-style: normal;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(620px, 100%);
  margin-top: 8px;
  padding: 7px 13px;
  color: var(--ink);
  background: var(--panel-strong);
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  cursor: pointer;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.76rem;
}

.ca-pill:hover {
  border-color: var(--yellow);
}

.ca-pill-addr {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-toast {
  min-height: 14px;
  margin-top: 3px;
  color: var(--yellow);
  font-weight: 800;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.stat-card,
.meme-card,
.table-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.stat-card {
  padding: 10px 12px;
}

.stat-label {
  color: var(--muted);
  display: block;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 3px;
  font-family: "Bangers", cursive;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 400;
  line-height: 0.95;
}

.stat-card span:last-child {
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.meme-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 10px;
}

.meme-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 248, 0, 0.22), transparent 12rem),
    radial-gradient(circle at 8% 100%, rgba(255, 0, 206, 0.22), transparent 14rem);
  pointer-events: none;
}

.meme-card-inner {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.meme-img-wrap {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 4px solid #050505;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #050505;
  transform: rotate(-2deg);
}

.meme-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.meme-card h3 {
  margin: 0;
  font-family: "Bangers", cursive;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  font-weight: 400;
  line-height: 0.9;
}

.meme-ticker {
  color: var(--yellow);
  font-weight: 900;
}

.meme-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.meme-stat {
  padding: 7px 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.meme-stat span {
  color: var(--muted);
  display: block;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meme-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.table-card {
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-family: "Bangers", cursive;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 400;
  line-height: 0.9;
}

#last-updated {
  color: var(--muted);
  font-size: 0.74rem;
}

.table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
}

.buyback-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.buyback-table th,
.buyback-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.buyback-table th {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.buyback-table .num {
  text-align: right;
}

.buyback-table a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

.buyback-table a:hover {
  text-decoration: underline;
}

.empty td {
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

footer {
  width: min(820px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  text-align: center;
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .page {
    width: min(100% - 22px, 1180px);
    height: auto;
    min-height: 100dvh;
    padding-top: 14px;
    display: block;
  }

  .topbar,
  .section-head {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .overview,
  .meme-grid {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .meme-card-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .meme-stats {
    grid-template-columns: 1fr;
  }
}
