* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #F6EFDC;
  color: #221d12;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #b3541e; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid #b3541e; outline-offset: 2px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
code { overflow-wrap: anywhere; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  background: #221d12; color: #F6EFDC;
  position: sticky; top: 0; z-index: 10;
}
.logo {
  color: #F6EFDC; text-decoration: none; font-weight: 900;
  font-size: 24px; letter-spacing: 2px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.status-pill {
  background: #f5b301; color: #221d12; font-weight: 800; font-size: 13px;
  padding: 8px 14px; border-radius: 999px; letter-spacing: 1px;
  min-height: 44px; display: inline-flex; align-items: center;
  white-space: nowrap;
}
.status-pill.live { background: #22c55e; color: #062b14; }
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  background: transparent; border: 2px solid #F6EFDC; border-radius: 10px;
  cursor: pointer; padding: 0; flex: none;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: #F6EFDC; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; color: #F6EFDC; text-decoration: none; font-weight: 700;
  padding: 12px 4px; min-height: 44px; white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #f5b301; }
@media (max-width: 767px) {
  .site-nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #221d12; border-top: 1px solid #3a3222; padding: 8px 16px 16px;
  }
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .site-nav { display: block; position: static; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { padding: 8px 8px; font-size: 15px; }
}
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.section { margin-top: 56px; }
.section h2 { font-size: 30px; margin: 0 0 8px; line-height: 1.2; }
.section h3 { font-size: 21px; margin: 28px 0 8px; }
.section p { margin: 8px 0; }
.btn {
  display: inline-block; background: #221d12; color: #F6EFDC;
  font-weight: 800; font-size: 17px; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; min-height: 44px;
  line-height: 1.4; margin-top: 6px;
}
.btn:hover, .btn:focus-visible { background: #b3541e; color: #fff; }
.copy-btn { cursor: pointer; font-family: inherit; border: none; }
.copy-btn.copied { background: #2f7d32; color: #fff; }
.gallery-intro h1 { font-size: 40px; margin: 0 0 8px; line-height: 1.2; }

.hero { text-align: center; padding-top: 28px; }
.eyebrow { font-weight: 700; color: #7a5c2e; margin: 0 0 4px; }
.hero h1 { font-size: 64px; line-height: 1; margin: 4px 0 8px; letter-spacing: 1px; }
.tagline { font-size: 20px; max-width: 560px; margin: 0 auto; }
.hero-images {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 24px auto 0; max-width: 640px;
}
.hero-images img { border: 4px solid #221d12; border-radius: 18px; width: 100%; }
.status-box {
  margin: 24px auto 0; max-width: 640px; text-align: left;
  background: #fff8e1; border: 3px solid #f5b301; border-radius: 16px;
  padding: 16px 18px;
}
.status-box p { margin: 6px 0 0; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: 24px auto 0; max-width: 640px;
}
.stats div {
  background: #fff; border: 3px solid #221d12; border-radius: 14px;
  padding: 12px 6px; min-height: 44px;
}
.stats strong { display: block; font-size: 22px; }
.stats span { font-size: 13px; color: #6b5d43; }
.stats div.wide { grid-column: 1 / -1; }

.ladder { width: 100%; max-width: 520px; border-collapse: collapse; margin: 16px 0; background: #fff; }
.ladder th, .ladder td {
  border: 2px solid #221d12; padding: 12px 14px; text-align: left;
  min-height: 44px;
}
.ladder th { background: #221d12; color: #F6EFDC; }
.note { font-size: 15px; color: #5c4f36; }

.gallery {
  display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 20px;
}
.card {
  background: #fff; border: 3px solid #221d12; border-radius: 18px;
  overflow: hidden;
}
.card img { width: 100%; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { margin: 0 0 4px; font-size: 21px; }
.rarity {
  display: inline-block; font-weight: 800; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin: 0 0 8px;
}
.rarity.common { background: #e8f5d8; color: #3f6212; }
.rarity.rare { background: #dbeafe; color: #1e40af; }
.rarity.epic { background: #ede9fe; color: #6b21a8; }
.rarity.legendary { background: #fef3c7; color: #92400e; }
.story { margin: 0; font-size: 15px; }

.tiers { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.tier-card {
  border: 3px solid #221d12; border-radius: 16px; padding: 18px;
  background: #fff;
}
.tier-card h3 { margin: 0; }
.tier-card .count { font-size: 34px; font-weight: 900; margin: 4px 0; }
.tier-card.legendary { background: #1f2a5e; color: #fde68a; border-color: #1f2a5e; }

.steps { padding-left: 22px; }
.steps li { margin: 10px 0; padding-left: 4px; }
.prompt, .cli {
  background: #221d12; color: #f5efe0; border-radius: 12px;
  padding: 16px; overflow-x: auto; white-space: pre-wrap;
  word-break: break-word; font-size: 13.5px; line-height: 1.5;
  max-width: 100%;
}
dl dt { font-weight: 800; margin-top: 14px; }
dl dd { margin: 4px 0 0; }

.site-footer {
  border-top: 3px solid #221d12; padding: 24px 16px 32px;
  text-align: center; color: #5c4f36; font-size: 15px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: #221d12; font-weight: 700; display: inline-block; padding: 10px 8px; min-height: 44px; }
main a:not(.btn) { display: inline-block; padding: 8px 2px; min-height: 44px; }

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 84px; }
}
.roadmap { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.phase { border: 3px solid #221d12; border-radius: 16px; padding: 16px 18px; background: #fff; }
.phase h3 { margin: 4px 0 6px; }
.phase p { margin: 0; }
.phase-status {
  display: inline-block; font-weight: 800; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.phase.done .phase-status { background: #e8f5d8; color: #3f6212; }
.phase.current { border-color: #f5b301; }
.phase.current .phase-status { background: #fef3c7; color: #92400e; }
.phase.current .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #b45309; margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}
.phase.next .phase-status { background: #efe9d8; color: #6b5d43; }
.market-list { padding-left: 22px; }
.market-list li { margin: 12px 0; padding-left: 4px; }

@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .tiers { grid-template-columns: repeat(4, 1fr); }
}
