:root {
  --bg: #0e0f12; --fg: #f5f7fb; --muted: #a7adbb; --accent: #ffd166;
  --btn: #1a1d24; --btn-hover: #232734;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--fg); background: radial-gradient(900px 520px at 50% -20%, #1a1e27, #0e0f12);
}
#app { display: grid; place-items: center; height: 100%; outline: none; }
.wrap { text-align: center; padding: 2rem; max-width: 720px; width: 100%; }

.brand { font-weight: 800; letter-spacing: .5px; margin: 0 0 1rem; }
.brand .dot { color: var(--accent); }

.cat {
  display: inline-grid; place-items: center;
  width: clamp(180px, 40vw, 280px); height: clamp(180px, 40vw, 280px);
  font-size: clamp(6rem, 18vw, 10rem); line-height: 1;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.08);
  background: var(--btn); color: var(--fg); cursor: pointer;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.cat:hover { background: var(--btn-hover); }
.cat:active { transform: scale(.98); }

.counter {
  display: block; margin: 1rem auto 1.25rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: .75rem 1rem; width: fit-content;
}
.label { color: var(--muted); font-size: .9rem; margin-bottom: .2rem; }
.value { font-variant-numeric: tabular-nums; font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 800; }

.controls { display: flex; gap: .5rem; justify-content: center; margin: .9rem 0 0; flex-wrap: wrap; }
.control {
  background: var(--btn); color: var(--fg);
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  padding: .5rem .75rem; font-weight: 600; cursor: pointer;
}
.control:hover { background: var(--btn-hover); }

.hint { color: var(--muted); font-size: .9rem; margin-top: .75rem; }
kbd {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-bottom-width: 3px; border-radius: 6px; padding: .1rem .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* +1 pop */
.click-pop {
  position: fixed; pointer-events: none; left: 0; top: 0; translate: -50% -50%;
  font-weight: 800; color: var(--accent); text-shadow: 0 6px 18px rgba(0,0,0,.6);
  animation: pop 600ms ease forwards;
}
@keyframes pop {
  0% { transform: scale(.6); opacity: .9; }
  70% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 0; translate: -50% -120%; }
}
