:root {
  --bg: #07060c;
  --bg-2: #120818;
  --ink: #f7efe4;
  --muted: #b8a8c4;
  --gold: #ffd24a;
  --gold-2: #c49212;
  --mag: #ff2d95;
  --cyan: #3df0ff;
  --card: #140c1c;
  --line: #3a2448;
  --danger: #ff5a7a;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #3a1048 0%, transparent 50%), var(--bg);
  color: var(--ink);
  font-family: VT323, ui-monospace, monospace;
  font-size: 22px;
  line-height: 1.35;
  min-height: 100vh;
}
img.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
h1,
h2,
.brand span,
.btn,
.eyebrow,
.live {
  font-family: 'Press Start 2P', ui-monospace, monospace;
}
a {
  color: var(--cyan);
}
code {
  font-size: 0.78em;
  word-break: break-all;
}

.stars {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 1px),
    radial-gradient(#ffd24a 1px, transparent 1px);
  background-size: 48px 48px, 72px 72px;
  background-position: 0 0, 24px 12px;
  opacity: 0.12;
  z-index: 0;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 4px solid var(--gold);
  background: #0c0812ee;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: 50% 20%;
  image-rendering: pixelated;
  border: 2px solid var(--gold);
}
nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
}
nav a:hover {
  color: var(--gold);
}

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  padding: 8px 0;
  background: var(--mag);
  color: #12010c;
  font-size: 20px;
  white-space: nowrap;
  border-bottom: 4px solid #12010c;
}
.ticker-track {
  display: inline-flex;
  gap: 32px;
  animation: ticker 22s linear infinite;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 380px;
  gap: 28px;
  padding: 40px 28px 24px;
  align-items: start;
}
.eyebrow {
  color: var(--mag);
  font-size: 10px;
  letter-spacing: 1px;
}
h1 {
  font-size: 28px;
  line-height: 1.45;
  margin: 12px 0 16px;
  max-width: 14ch;
}
.lede {
  color: var(--muted);
  max-width: 38ch;
  margin-top: 0;
}
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.rules li {
  border: 2px solid var(--line);
  background: #100818;
  padding: 10px 12px;
}
.rules strong {
  color: var(--gold);
}

.hero-art {
  position: relative;
  min-height: 360px;
}
.hero-img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 18%;
  border: 4px solid var(--gold);
  background: #000;
  box-shadow: 8px 8px 0 #000;
}
.hero-float {
  position: absolute;
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: 50% 18%;
  right: 8%;
  bottom: 8%;
  border: 3px solid var(--cyan);
  box-shadow: 4px 4px 0 #000;
}

.mint-card {
  background: var(--card);
  border: 4px solid var(--gold);
  box-shadow: 8px 8px 0 #000;
  padding: 18px;
}
.mint-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mint-card h2 {
  font-size: 12px;
  margin: 0;
}
.live {
  font-size: 8px;
  padding: 6px 8px;
  background: #2a1020;
  color: var(--mag);
  border: 2px solid var(--mag);
}
.live.on {
  color: #0c1;
  border-color: #0c1;
  background: #042008;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0 0 16px;
}
.stats div:last-child {
  grid-column: 1 / -1;
}
dt {
  color: var(--muted);
  font-size: 16px;
}
dd {
  margin: 0;
  color: var(--gold);
  font-size: 22px;
}
.qty-label {
  display: block;
  font-size: 16px;
  color: var(--muted);
}
.qty {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
  margin: 6px 0 10px;
}
.qty input {
  width: 100%;
  text-align: center;
  font: inherit;
  font-size: 28px;
  background: #0a0610;
  color: var(--ink);
  border: 2px solid var(--line);
}
.qty button,
.btn {
  font-family: 'Press Start 2P', ui-monospace, monospace;
  cursor: pointer;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
}
.qty button {
  background: var(--bg-2);
  color: var(--ink);
  font-size: 20px;
}
.btn {
  padding: 12px 14px;
  font-size: 11px;
}
.btn-gold {
  width: 100%;
  margin-top: 8px;
  background: var(--gold);
  color: #1a1000;
}
.btn-gold:hover {
  background: #ffe07a;
}
.btn-gold:disabled {
  background: #5a4a20;
  color: #2a2010;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
  font-size: 10px;
}
.quote {
  margin: 4px 0;
  color: var(--cyan);
}
.balance,
.hint,
.status {
  font-size: 18px;
  color: var(--muted);
}
.status {
  min-height: 1.2em;
  color: var(--gold);
}
.status.err {
  color: var(--danger);
}

.band {
  padding: 8px 28px 32px;
  position: relative;
  z-index: 1;
}
.banner {
  width: 100%;
  border: 4px solid var(--line);
}

.lineup-wrap {
  position: relative;
  z-index: 1;
  padding: 12px 28px 0;
}
.lineup {
  width: 100%;
  display: block;
  border: 4px solid var(--gold);
  box-shadow: 8px 8px 0 #000;
  background: #000;
}

.cast-row,
.gallery,
.lore,
.faq,
footer {
  position: relative;
  z-index: 1;
  padding: 12px 28px 40px;
}
.cast-row h2,
.gallery h2,
.lore h2,
.faq h2 {
  font-size: 16px;
  color: var(--gold);
}
.cast-row p,
.gallery p {
  color: var(--muted);
  margin-top: 0;
}
.cast {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.cast img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid var(--gold);
  background: #0a0610;
}
.cast span {
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 16px;
}
.lore-shot {
  width: 100%;
  border: 4px solid var(--gold);
  box-shadow: 8px 8px 0 #000;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.grid figure {
  margin: 0;
  background: #0a0610;
  border: 3px solid var(--line);
  padding: 6px;
}
.grid img {
  width: 100%;
  display: block;
}
.grid figcaption {
  font-size: 16px;
  color: var(--muted);
  padding-top: 4px;
}

.lore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.lore p {
  color: var(--muted);
  max-width: 46ch;
}

.faq details {
  border: 2px solid var(--line);
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #0e0814;
}
.faq summary {
  cursor: pointer;
  color: var(--gold);
}
.faq p {
  color: var(--muted);
}

footer {
  border-top: 4px solid var(--gold);
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
  .mint-card {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}
@media (max-width: 760px) {
  .hero,
  .lore {
    grid-template-columns: 1fr;
    padding: 20px 14px;
  }
  nav {
    display: none;
  }
  h1 {
    font-size: 22px;
  }
  .hero-float {
    width: 88px;
  }
  .top {
    padding: 12px 14px;
  }
  .cast {
    grid-template-columns: repeat(2, 1fr);
  }
  .lineup-wrap,
  .cast-row,
  .gallery,
  .faq,
  footer,
  .band {
    padding-left: 14px;
    padding-right: 14px;
  }
}
