/* Hero layout: reserve a dedicated visual zone for the NFT lineup. */
.hero {
  min-height: 0;
  padding-bottom: 280px;
}

.pal-lineup {
  bottom: 28px;
  pointer-events: none;
}

.nft-card {
  width: clamp(92px, 10.5vw, 155px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 4px solid #120e20;
  background: #c6ff00;
  box-shadow: 7px 8px 0 #120e20;
}

.nft-card:nth-child(even) {
  transform: translateY(-15px);
}

.nft-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gentle staggered movement keeps the collection alive without feeling distracting. */
.nft-card {
  --lift: 0px;
  animation: nft-float 4.8s ease-in-out infinite;
  will-change: transform;
}

.nft-card:nth-child(even) { --lift: -15px; }
.nft-card:nth-child(2) { animation-delay: -.9s; }
.nft-card:nth-child(3) { animation-delay: -2.1s; }
.nft-card:nth-child(4) { animation-delay: -3.3s; }
.nft-card:nth-child(5) { animation-delay: -1.5s; }
.nft-card:nth-child(6) { animation-delay: -2.7s; }

@keyframes nft-float {
  0%, 100% { transform: translateY(var(--lift)) rotate(-.35deg); }
  50% { transform: translateY(calc(var(--lift) - 12px)) rotate(.35deg); }
}

.nft-card:hover {
  animation-play-state: paused;
  transform: translateY(var(--lift)) scale(1.045);
  transition: transform .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .nft-card { animation: none; }
}

.facts {
  margin-bottom: 0;
}

.collection-heading {
  margin-top: 92px;
}

.nft-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.gallery-card {
  margin: 0;
  padding: 14px;
  border: 1px solid #433852;
  background: #21182f;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.gallery-card:hover {
  transform: translateY(-7px);
  border-color: var(--cyan);
  box-shadow: 0 10px 0 #100c1c;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid #100c1c;
}

.gallery-card p,
.gallery-card b {
  display: block;
  margin: 13px 0 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  line-height: 1.5;
}

.gallery-card p { color: var(--cyan); }
.gallery-card b { color: #bdb1c6; }

/* Keep long pixel-font labels inside their sections. */
.intro,
.mint-copy,
.story > p,
.faq p {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .nav {
    gap: 14px;
  }

  .brand,
  .nav a {
    font-size: 10px;
  }

  .notify {
    padding: 11px 12px;
    font-size: 8px;
  }

  .hero {
    padding-top: 43px;
    padding-bottom: 230px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.5;
  }

  .intro {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
  }

  .hero-actions a {
    text-align: center;
  }

  .facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 8px;
    font-size: 11px;
  }

  .pal-lineup {
    left: 5%;
    right: 5%;
    height: 145px;
  }

  .nft-card {
    width: 29%;
    border-width: 3px;
    box-shadow: 4px 5px 0 #120e20;
  }

  .nft-card:nth-child(2),
  .nft-card:nth-child(4),
  .nft-card:nth-child(6) {
    display: none;
  }

  .ticker {
    font-size: 8px;
    padding: 13px 0;
  }

  .collection-heading {
    margin-top: 70px;
  }

  .nft-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-card {
    padding: 9px;
  }

  .gallery-card p,
  .gallery-card b {
    font-size: 7px;
    margin-top: 9px;
  }

  h2 {
    font-size: 22px;
  }

  .story,
  .roadmap,
  .faq,
  .mint {
    padding: 62px 7%;
  }

  .mint input,
  .mint button {
    width: 100%;
  }

  footer {
    align-items: center;
    flex-direction: column;
    gap: 14px;
    text-align: center;
    line-height: 1.6;
  }
}
