:root {
  --bg: #0e0c16; --bg-alt: #09080f; --surface: #181526; --surface-hover: #221e36; --border: #2a2640;
  --text: #efeaf7; --text-2: #b3abc9; --muted: #8b83a8;
  --ember: #ff6b4a; --violet: #8f78ff; --jade: #46c28a;
  --fury: #e5484d; --calm: #3fb68b; --mind: #4c9aff; --body: #f08a3c; --chaos: #a56cff; --order: #f2c94c;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font-body); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg-alt); border-bottom: .5px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 18px var(--font-display); letter-spacing: -.01em; }
.brand .sg { color: var(--ember); }
.mark { width: 14px; height: 14px; background: var(--ember); transform: rotate(45deg); border-radius: 2px; }
.note { font: 500 12px var(--font-mono); color: var(--muted); border: .5px solid var(--border); border-radius: 999px; padding: 3px 10px; }

main { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }

.banner { padding: 32px 0 8px; }
.banner-head h1 { margin: 0 0 6px; font: 700 clamp(26px, 5vw, 42px)/1.1 var(--font-display); letter-spacing: -.02em; }
.banner-head p { margin: 0; color: var(--text-2); }
.marquee { margin: 24px -16px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 14px; width: max-content; padding: 4px 16px; animation: scroll 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.track .art { width: 132px; }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .marquee { overflow-x: auto; }
}

.controls { display: grid; gap: 12px; margin-top: 28px; padding: 12px 0; background: var(--bg); border-bottom: .5px solid var(--border); }
@media (min-width: 800px) { .controls { position: sticky; top: 0; z-index: 5; } }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: .5px solid var(--border); border-radius: 12px; padding: 0 14px; color: var(--muted); }
.search:focus-within { border-color: var(--violet); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; padding: 13px 0; outline: none; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); color: var(--text-2); border: .5px solid var(--border); border-radius: 999px; padding: 6px 12px; font: 500 14px var(--font-body); cursor: pointer; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip:hover { background: var(--surface-hover); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--c, var(--violet)); background: var(--surface-hover); }
.selects { display: flex; flex-wrap: wrap; gap: 12px; }
.selects label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
select { background: var(--surface); color: var(--text); border: .5px solid var(--border); border-radius: 10px; padding: 8px 10px; font: inherit; }

.count { color: var(--muted); font: 500 13px var(--font-mono); margin: 16px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: .5px solid var(--border); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 10px; transition: background .2s ease-out, border-color .2s ease-out; }
.card:hover { background: var(--surface-hover); border-color: #3a3560; }
.art { position: relative; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; border: .5px solid color-mix(in srgb, var(--c) 55%, var(--border)); background: linear-gradient(170deg, color-mix(in srgb, var(--c) 28%, var(--bg-alt)), var(--bg-alt) 75%); }
.art::before { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font: 700 56px var(--font-display); color: color-mix(in srgb, var(--c) 55%, transparent); }
.art .tag { position: absolute; left: 8px; top: 8px; font: 500 11px var(--font-mono); color: var(--text); background: rgb(9 8 15 / .7); border-radius: 999px; padding: 2px 8px; }
.card h2 { margin: 0; font: 600 15px/1.25 var(--font-body); }
.card .meta { color: var(--muted); font-size: 13px; margin-top: -6px; }
.price { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; }
.price b { font: 500 18px var(--font-mono); color: var(--jade); }
.price span { color: var(--muted); font-size: 13px; }
.buy { display: block; text-align: center; background: var(--ember); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: 10px; padding: 9px 12px; }
.buy:hover { filter: brightness(1.08); }

.empty { text-align: center; color: var(--text-2); padding: 48px 0; }
footer { border-top: .5px solid var(--border); padding: 20px 16px; text-align: center; color: var(--muted); font-size: 13px; background: var(--bg-alt); }
footer p { margin: 0 auto; max-width: 640px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
