/* BADGER MEMES — intentionally hideous. do not "fix" the design. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Comic Sans MS", "Comic Neue", cursive, sans-serif;
  background: repeating-linear-gradient(45deg, #ffe95c 0 40px, #ffd23c 40px 80px);
  color: #222;
  overflow-x: hidden;
}

.topbar {
  background: #ff2079;
  color: #fff;
  font-weight: bold;
  padding: 6px 0;
  border-bottom: 4px dashed #00e0ff;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 40px 16px 60px; }

.title {
  font-size: clamp(3rem, 10vw, 7rem);
  margin: 0;
  letter-spacing: -2px;
  text-shadow: 4px 4px 0 #000, 8px 8px 0 #ff2079;
  transform: rotate(-2deg);
}
.rainbow {
  background: linear-gradient(90deg, #ff0000, #ff9900, #ffee00, #33cc33, #0099ff, #9933ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle { font-size: 1.4rem; transform: rotate(1deg); }
.og-gif {
  border: 6px ridge #ff2079;
  transform: rotate(-3deg);
  image-rendering: pixelated;
  background: #fff;
}
.hero-copy { font-size: 1.1rem; line-height: 1.6; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.pill {
  background: #fff;
  border: 3px solid #000;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: bold;
  box-shadow: 3px 3px 0 #000;
}
.pill:nth-child(odd) { transform: rotate(2deg); background: #b6ff9e; }
.pill:nth-child(even) { transform: rotate(-2deg); background: #9edbff; }

.scroll-cta {
  display: inline-block;
  margin-top: 22px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  background: #7b2fff;
  padding: 14px 26px;
  border: 4px outset #cfa6ff;
  text-decoration: none;
  transform: rotate(-1deg);
}
.wobble { animation: wobble 0.9s infinite alternate ease-in-out; }
@keyframes wobble {
  from { transform: rotate(-3deg) scale(1); }
  to   { transform: rotate(3deg) scale(1.05); }
}

/* ---------- sections ---------- */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: 3px 3px 0 #fff;
  transform: rotate(-1deg);
}

/* ---------- candy machine ---------- */
.candy-section {
  background: repeating-linear-gradient(-45deg, #a2f3ff 0 40px, #7de9ff 40px 80px);
  border-top: 6px dashed #ff2079;
  border-bottom: 6px dashed #ff2079;
  padding: 40px 16px 70px;
}
.candy-tag { text-align: center; font-style: italic; margin-top: -10px; }

.machine-wrap {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* the poorly designed gumball machine */
.machine {
  width: 300px;
  text-align: center;
  transform: rotate(1.5deg);
  filter: drop-shadow(8px 10px 0 rgba(0,0,0,.35));
}
.machine-top {
  background: #ff2079;
  color: #ffea00;
  font-weight: bold;
  font-size: 1.1rem;
  border: 4px solid #000;
  border-radius: 14px 14px 0 0;
  padding: 6px;
  transform: rotate(-2deg);
  text-shadow: 2px 2px 0 #000;
}
.globe {
  position: relative;
  width: 260px;
  height: 260px;
  margin: -4px auto 0;
  background: radial-gradient(circle at 30% 25%, #ffffffee, #cfefff 60%, #9ad4ff);
  border: 6px solid #000;
  border-radius: 50%;
  overflow: hidden;
}
.gumballs { position: absolute; inset: 0; }
.gumball {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
#badgerCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .4s;
  background: #fff;
}
#badgerCanvas.show { opacity: 1; }

.machine-body {
  position: relative;
  width: 240px;
  margin: -8px auto 0;
  background: #ff4646;
  border: 5px solid #000;
  border-radius: 10px;
  padding: 16px 10px 22px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.price-tag {
  background: #fff;
  border: 3px dashed #000;
  padding: 6px;
  font-size: .8rem;
  transform: rotate(-6deg);
}
.crank {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: #c0c0c0;
  border: 5px outset #eee;
  font-family: inherit;
  font-weight: bold;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .6s;
}
.crank:active { border-style: inset; }
.crank.spin { transform: rotate(360deg); }
.flap {
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #999;
  font-size: .7rem;
  padding: 4px 18px;
  border: 3px solid #000;
  border-radius: 6px 6px 0 0;
}
.machine-foot {
  width: 170px; height: 26px;
  margin: 0 auto;
  background: #666;
  border: 5px solid #000;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

/* mint panel */
.mint-panel {
  background: #fff;
  border: 5px solid #000;
  box-shadow: 8px 8px 0 #7b2fff;
  padding: 20px;
  width: 340px;
  transform: rotate(-1deg);
}
.mint-panel h3 { margin-top: 0; font-size: 1.5rem; }
.supply-bar {
  height: 26px;
  border: 3px solid #000;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.supply-fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, #33cc33 0 14px, #b6ff9e 14px 28px);
  transition: width .6s;
}
.supply-text { font-weight: bold; }
.mint-price { font-size: 1.1rem; }
.big-mint {
  width: 100%;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 14px;
  background: #ffea00;
  border: 4px outset #fff6a8;
  cursor: pointer;
}
.mint-note { font-size: .8rem; color: #666; }

.result-card {
  margin-top: 14px;
  border: 3px dashed #ff2079;
  padding: 10px;
  background: #fff0f7;
}
.result-name { font-weight: bold; font-size: 1.2rem; margin: 0; }
.result-rank { margin: 4px 0; }
.result-traits { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }

/* ---------- token cards ---------- */
.token-section { padding: 50px 16px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 1000px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 4px solid #000;
  padding: 18px;
  box-shadow: 6px 6px 0 #000;
}
.card h3 { margin-top: 0; background: #ffea00; display: inline-block; padding: 2px 8px; border: 2px solid #000; }
.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(1.4deg); }

/* ---------- traits ---------- */
.traits-section {
  background: repeating-linear-gradient(45deg, #d9b6ff 0 40px, #c79bff 40px 80px);
  border-top: 6px dashed #33cc33;
  border-bottom: 6px dashed #33cc33;
  padding: 40px 16px 60px;
}
.traits-copy { text-align: center; max-width: 640px; margin: 0 auto 16px; }
.tier-legend { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.tier {
  border: 3px solid #000;
  padding: 4px 10px;
  font-weight: bold;
  border-radius: 8px;
  font-size: .85rem;
}
.tier.common { background: #ddd; }
.tier.uncommon { background: #b6ff9e; }
.tier.rare { background: #9edbff; }
.tier.epic { background: #e0b6ff; }
.tier.legendary { background: #ffd700; }

.trait-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.trait-table {
  background: #fff;
  border: 4px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 12px;
}
.trait-table h4 { margin: 0 0 8px; font-size: 1.2rem; }
.trait-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.trait-table td { border-bottom: 2px dotted #aaa; padding: 4px 2px; }
.trait-table td:last-child { text-align: right; white-space: nowrap; }
.trait-table tr:nth-child(odd) { transform: rotate(.3deg); }

/* ---------- roadmap ---------- */
.roadmap-section { padding: 50px 16px 70px; }
.roadmap {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 #ff2079;
  padding: 26px 26px 26px 50px;
  font-size: 1.15rem;
  line-height: 2;
  transform: rotate(-.6deg);
}

/* ---------- footer ---------- */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 26px 16px 90px;
}
.tiny { font-size: .75rem; color: #aaa; }

/* ---------- snake flyby ---------- */
.snake {
  position: fixed;
  top: 40%;
  left: -600px;
  font-size: 2rem;
  font-weight: bold;
  background: #b6ff9e;
  border: 4px solid #000;
  padding: 10px 20px;
  transform: rotate(-4deg);
  z-index: 99;
  pointer-events: none;
}
.snake.fly { animation: snakefly 3.2s linear; }
@keyframes snakefly {
  from { left: -600px; }
  to   { left: 110vw; }
}

/* ---------- dancing badger row ---------- */
.badger-row {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  z-index: 98;
}
.badger-row span {
  font-size: 2.2rem;
  animation: bop .45s infinite alternate ease-in-out;
}
.badger-row span:nth-child(even) { animation-delay: .22s; }
@keyframes bop {
  from { transform: translateY(6px) rotate(-8deg); }
  to   { transform: translateY(-10px) rotate(8deg); }
}

@media (max-width: 700px) {
  .machine { transform: rotate(0); }
  .badger-row span { font-size: 1.4rem; }
}
