
#levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.level-btn {
  padding: 14px 8px;
  font-size: 1.1rem;
  border: 2px solid #444;
  background: #1a1a2e;
  color: #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.level-btn:hover { background: #252545; border-color: #666; }
.level-btn.locked { background: #111; color: #555; border-color: #222; cursor: not-allowed; }
.level-btn.current { background: #336; border-color: #88f; color: white; font-weight: bold; }
.level-btn.best { border-color: #4c4; box-shadow: 0 0 10px #4c84; }
#game-area {
  background: #1a1a2e;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
}
#message { min-height: 1.4em; margin: 12px 0; font-size: 1.15rem; }
input, button {
  padding: 10px 14px;
  font-size: 1.1rem;
  margin: 6px;
  border-radius: 6px;
  border: 1px solid #555;
}
button {
  background: #446;
  color: white;
  border: none;
  cursor: pointer;
}
button:hover { background: #557; }
#stats {
  margin-top: 20px;
  color: #aaa;
  font-size: 0.95rem;
}