:root {
  --ink: #21140c;
  --paper: #fff7d6;
  --muted: rgba(33, 20, 12, 0.66);
  --panel: rgba(255, 247, 214, 0.9);
  --line: rgba(33, 20, 12, 0.16);
  --blue: #29a9ff;
  --pink: #ff61b8;
  --green: #5de15d;
  --yellow: #ffe45f;
  --orange: #ff9a3d;
  --shadow: 0 22px 60px rgba(66, 35, 10, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  background: #77d7ff;
  line-height: 1.45;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 97, 184, 0.5), transparent 13rem),
    radial-gradient(circle at 84% 10%, rgba(255, 228, 95, 0.7), transparent 12rem),
    radial-gradient(circle at 78% 78%, rgba(93, 225, 93, 0.48), transparent 16rem),
    linear-gradient(135deg, #9ee8ff, #fff1a5 42%, #ffb3dc);
}

.page {
  width: min(1180px, calc(100% - 28px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 16px 0 18px;
  display: grid;
  gap: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand,
.top-nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: grid;
  line-height: 1;
}

.brand-main {
  font-family: Bangers, cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 rgba(0, 0, 0, 0.12);
}

.brand-sub {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav a,
.ca-pill {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}

.top-nav a {
  padding: 8px 12px;
}

.top-nav a:hover,
.ca-pill:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 26px;
  align-items: center;
}

.hero-copy,
.pack-stage,
.stat-card,
.meme-card,
.table-card {
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow), 6px 6px 0 rgba(33, 20, 12, 0.9);
}

.hero-copy,
.pack-stage {
  border-radius: 34px;
  padding: clamp(18px, 3vw, 34px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 10px;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Bangers, cursive;
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0.03em;
  text-shadow: 4px 4px 0 #fff, 8px 8px 0 rgba(255, 97, 184, 0.55);
}

.tagline {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(33, 20, 12, 0.78);
  font-size: clamp(1rem, 2.2vw, 1.24rem);
  font-weight: 800;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ca-pill {
  max-width: 100%;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font: 800 0.82rem ui-monospace, "Cascadia Code", Consolas, monospace;
}

.ca-label {
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  padding: 2px 7px;
}

.ca-pill-addr {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-toast {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  font-weight: 900;
}

.pack-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 228, 95, 0.7), transparent 12rem),
    var(--panel);
}

.pack-shell {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 5 / 7;
  display: grid;
  place-items: center;
}

.pack-img {
  width: 82%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 18px 22px rgba(33, 20, 12, 0.35));
  transform-origin: 50% 85%;
}

.pack-img--ripped {
  position: absolute;
  opacity: 0;
  transform: scale(0.98) rotate(1deg);
  transition: opacity 120ms ease;
}

.is-shaking-pack .pack-img:not(.pack-img--ripped) {
  animation: packShake 0.18s steps(2) infinite;
}

.is-ripped-pack .pack-img:not(.pack-img--ripped) {
  opacity: 0;
}

.is-ripped-pack .pack-img--ripped {
  opacity: 1;
  animation: rippedPop 0.24s ease-out both;
}

.pull-card {
  position: absolute;
  inset: 18% 13% auto;
  min-height: 58%;
  padding: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 rgba(33, 20, 12, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translateY(96%) rotate(4deg) scale(0.82);
  transition:
    opacity 160ms ease,
    transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.is-showing-pull .pull-card {
  opacity: 1;
  transform: translateY(16%) rotate(-3deg) scale(1);
}

.pull-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--yellow);
}

.pull-card span {
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.pull-card strong {
  font-family: Bangers, cursive;
  font-size: 1.8rem;
  line-height: 1;
}

.cycle-card {
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  border: 2px dashed var(--ink);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.cycle-card span,
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cycle-card strong {
  display: block;
  font-size: 1.25rem;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.meme-card,
.table-card {
  border-radius: 24px;
}

.stat-card {
  padding: 16px;
}

.stat-card strong {
  display: block;
  margin-top: 5px;
  font-family: Bangers, cursive;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.stat-card small {
  color: var(--muted);
  font-weight: 800;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meme-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
}

.meme-card img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
}

.meme-card h3,
.meme-card p {
  margin: 0;
}

.meme-card h3 {
  font-family: Bangers, cursive;
  font-size: 1.7rem;
  line-height: 1;
}

.meme-card p,
.meme-card strong {
  color: var(--muted);
  font-size: 0.86rem;
}

.table-card {
  overflow: hidden;
}

.section-head {
  padding: 16px 18px 8px;
}

.section-head h2 {
  margin: 0;
  font-family: Bangers, cursive;
  font-size: 2.3rem;
  line-height: 1;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  font-weight: 800;
}

td span,
td a {
  color: var(--muted);
}

.num {
  text-align: right;
}

.empty td {
  text-align: center;
  color: var(--muted);
}

footer {
  color: rgba(33, 20, 12, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

@keyframes packShake {
  0% { transform: rotate(-2deg) translateX(-3px); }
  100% { transform: rotate(2deg) translateX(3px); }
}

@keyframes rippedPop {
  0% { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(0.98) rotate(1deg); }
}

@media (max-width: 920px) {
  .topbar,
  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .overview,
  .meme-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(4.2rem, 20vw, 7rem);
  }
}
