:root {
  --bg: #0f172a;
  --card: #1e293b;
  --accent: #f43f5e;
  --plus: #22c55e;
  --minus: #ef4444;
  --text: #f1f5f9;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #1e293b, var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

main {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card .name {
  font-size: 1.5rem;
  font-weight: 600;
}

.card .controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.count {
  font-size: 2.2rem;
  font-weight: 800;
  min-width: 3rem;
  font-variant-numeric: tabular-nums;
}

button {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 14px;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}

button:active {
  transform: scale(0.9);
}

button.plus {
  background: var(--plus);
}

button.minus {
  background: var(--minus);
}

button:hover {
  filter: brightness(1.1);
}

footer {
  margin-top: 2rem;
  color: var(--muted);
}

footer span {
  color: var(--accent);
  font-weight: 700;
}

.loading {
  color: var(--muted);
}
