:root {
  --bg: #16161a;
  --card: #1e1e24;
  --line: #2c2c34;
  --text: #f4f4f5;
  --muted: #b4b4bc;
  --yellow: #ffcc00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--yellow); }
.hero, main, footer { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 32px 0 16px; text-align: center; }
.brand img { width: min(280px, 80vw); height: auto; border-radius: 12px; background: #000; }
.eyebrow {
  display: inline-block;
  margin: 20px 0 8px;
  padding: 4px 10px;
  background: var(--yellow);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
h1 { font-size: clamp(32px, 6vw, 52px); margin: 0 0 8px; }
.lede { color: var(--muted); max-width: 36rem; margin: 0 auto 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
}
.store:last-child { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.status { text-align: center; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 16px 0 40px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.tile img { width: 100%; height: 200px; object-fit: cover; background: #000; display: block; }
.tile .meta { padding: 10px 12px 14px; }
.tile .name { font-weight: 700; margin: 0; }
.tile .trade { color: var(--yellow); font-size: 13px; margin: 2px 0 0; }
.tile .cap { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.empty { text-align: center; padding: 24px 0 48px; color: var(--muted); }
.empty h2 { color: var(--text); }
.hat-art {
  width: 140px;
  height: 110px;
  margin: 0 auto 16px;
  background:
    radial-gradient(ellipse 70px 36px at 50% 78%, #111 0 70%, transparent 71%),
    radial-gradient(ellipse 90px 70px at 50% 55%, var(--yellow) 0 62%, transparent 63%);
  position: relative;
}
.hat-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 18px;
  height: 16px;
  transform: translateX(-50%);
  background: var(--yellow);
  border-radius: 3px 3px 0 0;
}
.lightbox {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--card);
  color: var(--text);
  width: min(640px, 94vw);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.72); }
.lightbox img { width: 100%; max-height: 70vh; object-fit: contain; background: #000; border-radius: 10px; }
.lightbox-meta { margin: 12px 0; }
.lightbox-meta p { margin: 0 0 4px; }
#lightbox-trade { color: var(--yellow); }
#lightbox-close {
  background: var(--yellow);
  color: #111;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
footer { padding: 16px 0 32px; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .tile img { height: 150px; }
}
