:root {
  --bg: #0f1115;
  --card: #1a1d24;
  --accent: #6c8cff;
  --text: #e6e8ee;
  --muted: #8b90a0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

main {
  width: 100%;
  max-width: 480px;
}

h1 { margin: 0 0 4px; font-size: 2rem; }
.subtitle { margin: 0 0 32px; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 { margin: 0 0 16px; font-size: 1.1rem; }

.counter-value {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .15s;
}
button:hover { opacity: .85; }

#reset { background: #2a2e38; }

form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

input {
  flex: 1;
  background: #0f1115;
  border: 1px solid #2a2e38;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 1rem;
}
input:focus { outline: none; border-color: var(--accent); }

ul { list-style: none; margin: 0; padding: 0; }
li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #2a2e38;
}
li:last-child { border-bottom: none; }
li button {
  background: transparent;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 1.2rem;
}
