:root {
  --bg: #1b1420;
  --bg-card: #251a2e;
  --bg-card-hover: #2c1f38;
  --border: #3a2c46;
  --text: #f2e9e4;
  --text-muted: #b9a9c4;
  --accent: #e8b34c;

  --common: #8a94a6;
  --rare: #4fa3d1;
  --legendary: #e8b34c;
  --cursed: #a05fd1;

  --font-display: "Bitter", serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
}

.shop-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.shop-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.tagline {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.status {
  text-align: center;
  color: var(--text-muted);
  min-height: 1.5rem;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.25rem 1.25rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.seal {
  position: absolute;
  top: -12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #1b1420;
  font-weight: 700;
  transform: rotate(-8deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.seal--common { background: var(--common); }
.seal--rare { background: var(--rare); }
.seal--legendary { background: var(--legendary); }
.seal--cursed { background: var(--cursed); color: #f2e9e4; }

.card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.3;
}

.card-price {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.card-effect {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}
