:root {
  --bg: #0f0f11;
  --surface: #1a1a1e;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --accent: #22d3ee;
  --accent-dim: #0891b2;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.container {
  width: 100%;
  max-width: 480px;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  margin: 0.25rem 0 2rem;
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.04);
}

.card h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.counter {
  font-size: 4rem;
  font-weight: 800;
  text-align: center;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 1rem 0;
}

.buttons {
  display: flex;
  gap: 0.5rem;
}

button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover {
  background: rgba(255,255,255,0.12);
}

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

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}

.swatch:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.swatch.active {
  border-color: var(--text);
}

.color-preview {
  height: 60px;
  border-radius: 8px;
  background: var(--accent);
  transition: background 0.3s ease;
}

footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
