:root {
  --bg-0: #fff8ea;
  --bg-1: #ffe5b7;
  --bg-2: #f0f7ff;
  --text: #1f1a14;
  --muted: #6f6258;
  --card: #fffdf8;
  --line: #e7d8bf;
  --accent: #d35400;
  --accent-2: #0077b6;
  --success: #0b6e4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Bricolage Grotesque", sans-serif;
  background: radial-gradient(circle at 20% 20%, var(--bg-1), transparent 40%),
    radial-gradient(circle at 80% 0, var(--bg-2), transparent 35%),
    var(--bg-0);
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(transparent 96%, rgba(0, 0, 0, 0.03) 100%);
  background-size: 100% 24px;
}

.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1 {
  margin: 0.3rem 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.status {
  margin-top: 0.9rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent-2);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem 2.2rem;
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto minmax(120px, 180px) auto minmax(220px, 1fr) auto minmax(180px, 1fr);
  gap: 0.6rem;
  align-items: center;
  background: rgba(255, 253, 245, 0.75);
  border: 1px solid var(--line);
  backdrop-filter: blur(5px);
  padding: 0.75rem;
  border-radius: 14px;
}

.toolbar label {
  font-size: 0.8rem;
  color: var(--muted);
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 0.55rem 0.65rem;
  font-family: inherit;
}

.theme-toolbar {
  margin-top: 0.75rem;
  background: rgba(255, 253, 245, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
}

.theme-toolbar-title {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.theme-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.theme-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.theme-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0.26rem 0.48rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.theme-action:hover {
  border-color: var(--accent);
}

.theme-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.theme-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 150px;
  overflow: auto;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
}

.theme-chip input {
  margin: 0;
}

.grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(43, 19, 0, 0.07);
  transform: translateY(8px);
  opacity: 0;
  animation: reveal 0.45s ease forwards;
}

.card-image {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: linear-gradient(180deg, #fff7e8, #fff);
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 0.72rem;
}

.set-number {
  margin: 0;
  color: var(--accent-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.set-name {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.release-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
}

.prices {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  min-height: 2.7rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.discount {
  color: var(--success);
  font-weight: 700;
}

.cta {
  text-decoration: none;
  text-align: center;
  background: linear-gradient(90deg, var(--accent), #f08c00);
  color: white;
  font-weight: 700;
  padding: 0.48rem;
  margin-top: 0.15rem;
  border-radius: 10px;
}

@keyframes reveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
}
