:root {
  --ec-color: #2563eb;
  --flea-color: #d97706;
  --store-color: #059669;
}

body {
  font-family: system-ui, "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  padding: 2rem;
  background: #f8fafc;
  color: #0f172a;
}

.disclaimer {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.channel-header {
  display: inline-block;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.channel-header.ec { background: var(--ec-color); }
.channel-header.flea { background: var(--flea-color); }
.channel-header.store { background: var(--store-color); }

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 420px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-card h2 {
  margin-top: 0;
}

.quantity-row {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

button {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#buy-button {
  background: #0f172a;
  color: #fff;
}

#buy-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

#fire-button {
  background: #dc2626;
  color: #fff;
  margin-top: 1rem;
}

.sold-out-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.sold-out-badge[hidden] {
  display: none;
}

#fire-result {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
}

#log-area {
  margin-top: 1.5rem;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  max-width: 420px;
  height: 160px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
}
