* { box-sizing: border-box; }
body {
  margin: 0;
  background: #000;
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: #000;
  border-bottom: 1px solid #222;
}
.progress {
  flex: 1;
  height: 8px;
  background: #1a1a1a;
  overflow: hidden;
}
#bar {
  height: 100%;
  width: 0;
  background: #e2b84a;
}
#count { color: #888; font-size: 12px; white-space: nowrap; }
#btn-mint,
#btn-connect {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  background: #e2b84a;
  color: #1a1208;
  padding: 10px 28px;
}
#btn-mint:disabled,
#btn-connect:disabled { opacity: 0.5; cursor: wait; }
.nav {
  color: #e2b84a;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #000;
  display: block;
}
.card b {
  display: block;
  text-align: center;
  font-size: 11px;
  padding: 6px 0 10px;
  color: #888;
}
.card.selected { outline: 2px solid #e2b84a; }
.card.claimed { opacity: 0.35; }
.card.mine { outline: 2px solid #7b4cc4; opacity: 1; }
.card.pending { outline: 2px dashed #e2b84a; opacity: 1; }
.card.listed { outline: 2px solid #e2b84a; opacity: 1; }
.fee-note {
  text-align: center;
  color: #888;
  font-size: 11px;
  padding: 0 8px 6px;
}
.trade {
  display: flex;
  gap: 6px;
  padding: 0 8px 10px;
}
.trade input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 12px;
  padding: 6px;
  border: 1px solid #333;
  background: #111;
  color: #eee;
}
.trade button {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  border: 0;
  background: #e2b84a;
  color: #1a1208;
  padding: 6px 10px;
  cursor: pointer;
}
.empty {
  color: #666;
  text-align: center;
  padding: 80px 16px;
  grid-column: 1 / -1;
}
.item {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 8px;
}
.item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #000;
  display: block;
}
.item > b {
  display: block;
  text-align: center;
  padding: 8px 0 4px;
  color: #aaa;
  font-size: 12px;
}
.proof {
  margin: 8px 10px 10px;
  background: #1a1a1c;
  border: 1px solid #2e2e32;
  border-radius: 10px;
  color: #ddd;
}
.proof summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px 10px;
  color: #e2b84a;
  letter-spacing: 0.14em;
  font-size: 11px;
  text-transform: uppercase;
}
.proof summary::-webkit-details-marker { display: none; }
.proof-row {
  display: grid;
  grid-template-columns: 140px 1fr 32px;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #2a2a2e;
  font-size: 12px;
}
.proof-label {
  color: #8b8b93;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}
.proof-value {
  color: #ececec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proof-copy {
  border: 0;
  background: transparent;
  color: #8b8b93;
  cursor: pointer;
  padding: 4px;
  display: flex;
  justify-content: center;
}
.proof-copy:hover { color: #e2b84a; }
.proof-copy:disabled { opacity: 0.3; cursor: default; }
.owned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.market { min-height: calc(100vh - 58px); }
.stats {
  display: flex;
  gap: 24px;
  padding: 16px 20px 8px;
  border-bottom: 1px solid #222;
}
.stats div { min-width: 120px; }
.stats b {
  display: block;
  color: #888;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stats span { color: #e2b84a; font-size: 16px; }
.market-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: start;
}
.activity {
  position: sticky;
  top: 58px;
  border-left: 1px solid #222;
  min-height: calc(100vh - 120px);
  padding: 16px 14px;
}
.activity h2 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e2b84a;
}
.act {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 12px;
  color: #ccc;
}
.act img { width: 36px; height: 48px; object-fit: contain; background: #000; }
@media (max-width: 900px) {
  .market-body { grid-template-columns: 1fr; }
  .activity { position: static; border-left: 0; border-top: 1px solid #222; min-height: 0; }
}
