/* The Market pages: a grid of pixel-art tiles and one page per item. */
.nav .wrap { justify-content: space-between; }
.navlink { color: var(--fg-soft); text-decoration: none; font-weight: 600; }
.wrap.wide { max-width: 1080px; }
.eyebrow { text-decoration: none; }
.search { width: 100%; margin: 20px 0 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--night-2); color: var(--fg); font: 16px var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--night-2); border: 1px solid var(--line); color: var(--fg-soft); text-decoration: none; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 12px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.tile:hover { border-color: var(--fur); }
.tile[hidden], section[hidden] { display: none; }
.tile .pill { position: absolute; top: 14px; right: 14px; }
.art, .stage { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: repeating-conic-gradient(#2A2160 0% 25%, #231B52 0% 50%) 50% / 16px 16px; }
.art img, .stage img { max-width: 86%; max-height: 86%; image-rendering: pixelated; }
.art img { width: 86%; height: 86%; object-fit: contain; }
.stage img { width: 86%; height: 86%; object-fit: contain; }
.name { font-weight: 600; margin-top: 6px; }
.meta { color: var(--fg-faint); font-size: 13px; }
.pill.free { background: #63C74D; color: #10240A; }
.item .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 16px; align-items: start; }
.item h1 { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; background: var(--fur); color: #2E160A; font: 800 16px/1 var(--display); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
@media (max-width: 640px) {
  .item .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
